fregante / fregante/my-recurrent-errors

MV3 background worker: importScripts: ReferenceError: window is not defined

Open
#8 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Screenshot

The error points to `importScripts` without further ability to reach the error, even via "Pause on uncaught exceptions"

## Solution

Load the file directly, if possible:

```diff
"background": {
- "service_worker": "background.worker.js"
- "service_worker": "background.js"
},
```

This lets the debugger show the right line.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.