manifest scope need a tailing slash eg. "/egroupware/"

This commit is contained in:
Ralf Becker 2020-10-19 13:42:31 +02:00
parent a12cdb1d02
commit 09f95a8e78

View File

@ -77,11 +77,11 @@ egw_LAB.wait(function()
// register service worker
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('./service-worker.js', {scope:egw_webserverUrl})
navigator.serviceWorker.register('./service-worker.js', {scope:egw_webserverUrl+'/'})
.then(function(registration) {
console.log('Registration successful, scope is:', registration.scope);
})
.catch(function(error) {
console.log('Service worker registration failed, error:', error);
});
}
}