Maybe fix scope of PWA

This commit is contained in:
Jason McBrayer 2018-09-19 09:59:29 -04:00
parent 0f3162f7b3
commit 3bbe859227
1 changed files with 1 additions and 1 deletions

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);
});