Forum Discussion
MichaelGraham2
Qrew Assistant Captain
Hi Dan
This is my code for the reg.html but I cant get it to activate the service worker?
I installed the Service Worker Detector.
sw3.js and sw4.js are copies of your code with my dbids.
Can you think of what I may be missing?
This is my code for the reg.html but I cant get it to activate the service worker?
I installed the Service Worker Detector.
sw3.js and sw4.js are copies of your code with my dbids.
Can you think of what I may be missing?
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Service Worker Registration Page</title> </head> <body> <script> var dbid = "bjgfg9j2v"; var dbidTable1 = "bjgfg9j4u"; var dbidTable2 = "bkw7ji6y9"; var dbidTable3 = "bmegt73fb"; var dbidTable4 = "bmtwwihdt"; var apptoken = "bi3u4amckdsz9xcqe3ehdbcwxty"; if ("serviceWorker" in navigator) { navigator.serviceWorker.register(dbid + "?a=dbpage&pagename=sw3.js", {scope: dbidTable1}); navigator.serviceWorker.register(dbid + "?a=dbpage&pagename=sw4.js", {scope: dbidTable3}); } </script> </body> </html>
MichaelGraham2
8 years agoQrew Assistant Captain
Im using Chrome Dan