FIX: Remove scope in SW register, avoid duplicated SWs
This commit is contained in:
parent
36ba0dfde3
commit
bf82b34f10
|
@ -10,7 +10,7 @@ export default {
|
|||
const isSecure = document.location.protocol === 'https:';
|
||||
|
||||
if (isSecure && caps.isAndroid && 'serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register(Discourse.BaseUri + '/service-worker.js', {scope: './'});
|
||||
navigator.serviceWorker.register(Discourse.BaseUri + '/service-worker.js');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue