fix: Properly invalidate content script context (#683)

This commit is contained in:
hujiulong
2024-05-31 21:24:12 +08:00
committed by GitHub
parent 8125d74057
commit d889a21465
@@ -217,7 +217,7 @@ export class ContentScriptContext implements AbortController {
// Use postMessage so it get's sent to all the frames of the page.
window.postMessage(
{
event: ContentScriptContext.SCRIPT_STARTED_MESSAGE_TYPE,
type: ContentScriptContext.SCRIPT_STARTED_MESSAGE_TYPE,
contentScriptName: this.contentScriptName,
},
'*',