mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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
Block a user