From cb49caaad090f6569d6ed6a030b02e2e6d00dabb Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 19 Oct 2020 13:42:31 +0200 Subject: [PATCH] manifest scope need a tailing slash eg. "/egroupware/" --- api/js/login.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/js/login.js b/api/js/login.js index 14410dd2cc..5d167c798c 100644 --- a/api/js/login.js +++ b/api/js/login.js @@ -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); }); -} \ No newline at end of file +}