Changes for page Membership
Last modified by superadmin on 2022/06/07 18:01
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -1,6 +1,7 @@ 1 1 if ('serviceWorker' in navigator) { 2 2 navigator.serviceWorker.register('/bin/jsx/LiveTableServiceWorker?minify=false', { 'scope': '/bin/view/Membership'}) 3 3 .then((reg) => { 4 + reg.update(); 4 4 if(reg.installing) { 5 5 const sw = reg.installing || reg.waiting; 6 6 sw.onstatechange = function() { ... ... @@ -13,7 +13,7 @@ 13 13 // something's not right or SW is bypassed. previously-installed SW should have redirected this request to different page 14 14 handleError(new Error('Service Worker is installed and not redirecting.')) 15 15 } 16 - reg.update();17 + 17 17 // registration worked 18 18 console.log('Registration succeeded. Scope is ' + reg.scope); 19 19 }).catch((error) => {