We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ContentScriptContext
1 parent f5b7f7e commit 52e5387Copy full SHA for 52e5387
packages/wxt/src/client/content-scripts/content-script-context.ts
@@ -35,7 +35,9 @@ import { createLocationWatcher } from './location-watcher';
35
* ```
36
*/
37
export class ContentScriptContext implements AbortController {
38
- private static SCRIPT_STARTED_MESSAGE_TYPE = 'wxt:content-script-started';
+ private static SCRIPT_STARTED_MESSAGE_TYPE = getUniqueEventName(
39
+ 'wxt:content-script-started',
40
+ );
41
42
private isTopFrame = window.self === window.top;
43
private abortController: AbortController;
0 commit comments