Is it possible to call a function from a JavaScript file out of an ServiceWorker?
Directory
root static js servicework
You can use importScripts() https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts
importScripts('https://example.com/script.js');