#service-worker.js importScripts()

4 messages · Page 1 of 1 (latest)

pearl wigeon
#

How do I run importScripts(URLPATH_TO_SW.JS) in the service-worker.ts file in /routes/ that generates the service-worker.js? My goal is to have the importScripts() line appear at the top of the generated service-worker.js

#

When I run importScripts() at the top of the service-worker.ts or in the activate or install listeners or after setupServiceWorker() I get the error that fetch() failed to execute likely because Qwik is overriding it. So what can I do?

pearl wigeon
#

@crude fossil 🙏

pearl wigeon
#

@minor condor 🙏