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.

LiveTableServiceWorker - HBP Wiki

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


Changes for page LiveTableServiceWorker

Last modified by bougault on 2022/03/22 17:19

From version 4.8
edited by bougault
on 2022/03/21 13:13
Change comment: There is no comment for this version
To version 4.7
edited by bougault
on 2022/03/21 13:11
Change comment: There is no comment for this version

Summary

Details

XWiki.JavaScriptExtension[0]
Caching policy
... ... @@ -1,0 +1,1 @@
1 +long
Code
... ... @@ -1,0 +1,10 @@
1 +if ('serviceWorker' in navigator) {
2 + navigator.serviceWorker.register('/bin/get/LiveTableServiceWorker?xcontent=plain&outputSyntax=plain', { 'scope': '/bin/view/Membership'})
3 + .then((reg) => {
4 + // registration worked
5 + console.log('Registration succeeded. Scope is ' + reg.scope);
6 + }).catch((error) => {
7 + // registration failed
8 + console.log('Registration failed with ' + error);
9 + });
10 +}
Name
... ... @@ -1,0 +1,1 @@
1 +eu.hbp.collaboratory.apps.livetableserviceworker