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.75
edited by bougault
on 2022/03/22 08:44
Change comment: There is no comment for this version
To version 4.73
edited by bougault
on 2022/03/22 08:42
Change comment: There is no comment for this version

Summary

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -11,9 +11,7 @@
11 11  self.addEventListener("fetch" , event => {
12 12   const pathname = new URL(event.request.url).pathname;
13 13   if(pathname === '/getMembershipRequests') {
14 - console.log('hello I am here');
15 - const res = new Response('should return membership requests');
16 - event.respondWith(res);
14 + event.respondWith(new Response('should return membership requests'));
17 17   /*
18 18   event.respondWith(fetch(event.request).then(res => res.json()).then(json => {
19 19   const headers = new Headers({'Content-Type': 'application/json'});