Failed to execute template. Cause: [Access denied when checking [script] access to [xwiki:Collaboratory.UX.HbpSkin.WebHome] for user [xwiki:XWiki.Admin]]. Click on this message for details.

Membership - HBP Wiki

IAM21 instance, do not create collab nor modify a team, your changes will be lost


Changes for page Membership

Last modified by superadmin on 2022/06/07 18:01

From version 6.24
edited by bougault
on 2022/03/21 17:49
Change comment: There is no comment for this version
To version 6.25
edited by bougault
on 2022/03/21 17:50
Change comment: There is no comment for this version

Summary

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -1,19 +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 - if(reg.installing) {
5 - const sw = reg.installing || reg.waiting;
6 - sw.onstatechange = function() {
7 - if (sw.state === 'installed') {
8 - // SW installed. Reload for SW intercept serving SW-enabled page.
9 - window.location.reload();
10 - }
11 - };
12 - } else if (reg.active) {
13 - // something's not right or SW is bypassed. previously-installed SW should have redirected this request to different page
14 - throw(new Error('Service Worker is installed and not redirecting.'))
15 -}
16 -
4 + reg.update();
17 17   // registration worked
18 18   console.log('Registration succeeded. Scope is ' + reg.scope);
19 19   }).catch((error) => {