mirror of
https://github.com/jfmcbrayer/brutaldon
synced 2025-01-11 22:44:30 +01:00
Maybe fix scope of PWA
This commit is contained in:
parent
0f3162f7b3
commit
3bbe859227
@ -223,7 +223,7 @@
|
|||||||
|
|
||||||
//Register the ServiceWorker
|
//Register the ServiceWorker
|
||||||
navigator.serviceWorker.register('{% static "js/pwabuilder-sw.js" %}', {
|
navigator.serviceWorker.register('{% static "js/pwabuilder-sw.js" %}', {
|
||||||
scope: './'
|
scope: '{% url 'home' %}'
|
||||||
}).then(function(reg) {
|
}).then(function(reg) {
|
||||||
console.log('Service worker has been registered for scope:'+ reg.scope);
|
console.log('Service worker has been registered for scope:'+ reg.scope);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user