2
0
mirror of https://github.com/jfmcbrayer/brutaldon synced 2024-12-23 21:51:43 +01:00

Maybe fix scope of PWA

This commit is contained in:
Jason McBrayer 2018-09-19 09:59:29 -04:00
parent 0f3162f7b3
commit 3bbe859227

View File

@ -223,7 +223,7 @@
//Register the ServiceWorker
navigator.serviceWorker.register('{% static "js/pwabuilder-sw.js" %}', {
scope: './'
scope: '{% url 'home' %}'
}).then(function(reg) {
console.log('Service worker has been registered for scope:'+ reg.scope);
});