0001-templates-only-enable-service-worker-on-real-pages-2.patch
templates/combo/page_template.html | ||
---|---|---|
121 | 121 | |
122 | 122 |
{% block body-bottom %} |
123 | 123 |
{% skeleton_extra_placeholder service-worker %} |
124 |
{% if page %} {# limit this to combo itself #}
|
|
124 |
{% if page.pk %} {# limit this to concrete pages on combo #}
|
|
125 | 125 |
{% if pwa_display == "standalone" %} |
126 | 126 |
<script> |
127 | 127 |
if ('serviceWorker' in navigator) { |
128 |
- |