Solutionunvalidated
Ensure background.js is not imported into the content script; move shared variables/code into the content script (or a separate shared module) so background.js only runs in the service worker, and apply the Sentry.WINDOW.document workaround there.
760c3ee8-8ca0-48e8-ba87-8837bd7c9867
Ensure background.js is not imported into the content script; move shared variables/code into the content script (or a separate shared module) so background.js only runs in the service worker, and apply the Sentry.WINDOW.document workaround there.