Skip to content

Commit 52e5387

Browse files
authored
fix: Add extension ID to event used to invalidate ContentScriptContext (#1175)
1 parent f5b7f7e commit 52e5387

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/wxt/src/client/content-scripts/content-script-context.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ import { createLocationWatcher } from './location-watcher';
3535
* ```
3636
*/
3737
export class ContentScriptContext implements AbortController {
38-
private static SCRIPT_STARTED_MESSAGE_TYPE = 'wxt:content-script-started';
38+
private static SCRIPT_STARTED_MESSAGE_TYPE = getUniqueEventName(
39+
'wxt:content-script-started',
40+
);
3941

4042
private isTopFrame = window.self === window.top;
4143
private abortController: AbortController;

0 commit comments

Comments
 (0)