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.11
edited by bougault
on 2022/03/21 13:20
Change comment: There is no comment for this version
To version 2.9
edited by bougault
on 2022/03/21 11:51
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,17 +1,5 @@
1 -{{velocity}}
2 -$response.addHeader('Service-Worker-Allowed', '/bin/view/Membership')
1 +{{velocity output="false"}}
3 3  $response.setContentType("text/javascript")
4 -self.addEventListener("install" , evt => {
5 - console.log(evt);
6 -});
7 -
8 -self.addEventListener("activate" , evt => {
9 - console.log(evt);
10 - clients.claim();
11 -});
12 -
13 -self.addEventListener("fetch" , evt => {
14 - console.log(evt);
15 -});
16 -
17 17  {{/velocity}}
4 +
5 +console.log('toto');
XWiki.JavaScriptExtension[0]
Caching policy
... ... @@ -1,0 +1,1 @@
1 +long
Code
... ... @@ -1,0 +1,16 @@
1 +self.addEventListener("install" , evt => {
2 + //evt.waitUntil(caches.open("main_cache").then(cache => cache.addAll(["/", "/something"])));
3 + console.log(evt);
4 +
5 + self.skipWaiting();
6 +});
7 +
8 +self.addEventListener("activate" , evt => {
9 + console.log(evt);
10 + clients.claim();
11 +});
12 +
13 +self.addEventListener("fetch" , evt => {
14 + console.log(evt);
15 +});
16 +
Name
... ... @@ -1,0 +1,1 @@
1 +eu.hbp.collaboratory.apps.livetableserviceworker