mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
manifest scope need a tailing slash eg. "/egroupware/"
This commit is contained in:
parent
a12cdb1d02
commit
09f95a8e78
@ -77,11 +77,11 @@ egw_LAB.wait(function()
|
|||||||
|
|
||||||
// register service worker
|
// register service worker
|
||||||
if ('serviceWorker' in navigator) {
|
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) {
|
.then(function(registration) {
|
||||||
console.log('Registration successful, scope is:', registration.scope);
|
console.log('Registration successful, scope is:', registration.scope);
|
||||||
})
|
})
|
||||||
.catch(function(error) {
|
.catch(function(error) {
|
||||||
console.log('Service worker registration failed, error:', error);
|
console.log('Service worker registration failed, error:', error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user