gzuidhof/coi-serviceworker

Uncaught TypeError: Cannot read properties of null (reading 'src')

RalkeyOfficial opened this issue · 1 comments

I get an error when loading this script.
I am loading this script from a Chrome extension I made.

like such

"content_scripts": [
    {
      "matches": ["<all>"],
      "js": ["coi-serviceworker", "content.js"],
      "css": ["style.css"],
      "all_frames": true
    }
  ],

image

You might be better off with whatever this extension does:
https://chrome.google.com/webstore/detail/modheader-modify-http-hea/idgpnmonknjnojddfkpgkljpfnnfcklj

the content script has no source hence this code cannot re-propose itself as Service Worker and I am not sure there's a solution to that.