0

I tried making my service worker file a module. It did not like that. You could set up a background page to load a JavaScript module using version 2 of manifest.json. But version 3 does not allow background pages (which does sound like a hack to be honest).

Is there a way to load up Javascript in the background without having to have all it code have to be crammed into just one file?

I can inject multiple js files into a page... I want something similar for the background process. It doesn't have to be a js module, that's just the only way I see it could possibly be done. What if I want to call functions in some library from my background.js ?

I think you can get what I'm trying to do.

Any thoughts?

Orville Chomer
  • 125
  • 1
  • 1
  • 5

0 Answers0