summaryrefslogtreecommitdiff
path: root/design
diff options
context:
space:
mode:
Diffstat (limited to 'design')
-rw-r--r--design/templates/base.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/design/templates/base.html b/design/templates/base.html
index 214b88d..be84317 100644
--- a/design/templates/base.html
+++ b/design/templates/base.html
@@ -76,18 +76,20 @@
</div>
{% block js %}{% endblock%}
<script>
+<!--
// Register our service-worker
if (navigator.serviceWorker) {
window.addEventListener('load', function() {
if (navigator.serviceWorker.controller) {
navigator.serviceWorker.controller.postMessage({'command': 'trimCaches'});
} else {
- navigator.serviceWorker.register('/media/js/serviceworker.js', {
+ navigator.serviceWorker.register('/serviceworker.js', {
scope: '/'
});
}
});
}
+//-->
</script>
{%comment%}
<!-- Piwik -->