mirror of
https://github.com/discourse/discourse.git
synced 2025-06-08 14:26:21 +08:00
FIX: Remove scope in SW register, avoid duplicated SWs
This commit is contained in:
@ -10,7 +10,7 @@ export default {
|
|||||||
const isSecure = document.location.protocol === 'https:';
|
const isSecure = document.location.protocol === 'https:';
|
||||||
|
|
||||||
if (isSecure && caps.isAndroid && 'serviceWorker' in navigator) {
|
if (isSecure && caps.isAndroid && 'serviceWorker' in navigator) {
|
||||||
navigator.serviceWorker.register(Discourse.BaseUri + '/service-worker.js', {scope: './'});
|
navigator.serviceWorker.register(Discourse.BaseUri + '/service-worker.js');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user