FIX: Remove scope in SW register, avoid duplicated SWs

This commit is contained in:
Rafael dos Santos Silva 2017-11-07 01:05:30 -02:00
parent 36ba0dfde3
commit bf82b34f10
1 changed files with 1 additions and 1 deletions

View File

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