R
Reactiflux

Adi – 09-52 Jun 26

Adi – 09-52 Jun 26

AAdi6/26/2022
Getting this error -> importscripts is not a function error…. when script is loaded through external source any idea??
UUUnknown User6/26/2022
Message Not Public
Sign In & Join Server To View
AAdi6/26/2022
for more info: I was able to serve this file (https://github.com/dbrennand/PS2Alert.me/blob/ac569e83efefec2f5e94d4a145a3756b7c6d0ecb/frontend/sw.js#L11) through nginx server as a static file but when I use self.importScripts() it throws error -> importScripts is not a function
UUUnknown User6/26/2022
Message Not Public
Sign In & Join Server To View
AAdi6/26/2022
but I have application which already has service worker register file what I am doing is just injecting sw.js file script through nginx. By this -> service worker register file I mean to say code which does registration like this https://github.com/dbrennand/PS2Alert.me/blob/ac569e83efefec2f5e94d4a145a3756b7c6d0ecb/frontend/index.js#L56
UUUnknown User6/26/2022
Message Not Public
Sign In & Join Server To View

Looking for more? Join the community!

R
Reactiflux

Adi – 09-52 Jun 26

Join Server