Skip to content

Commit

Permalink
fix: Add extension ID to event used to invalidate `ContentScriptConte…
Browse files Browse the repository at this point in the history
…xt` (#1175)
  • Loading branch information
aklinker1 authored Nov 14, 2024
1 parent f5b7f7e commit 52e5387
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ import { createLocationWatcher } from './location-watcher';
* ```
*/
export class ContentScriptContext implements AbortController {
private static SCRIPT_STARTED_MESSAGE_TYPE = 'wxt:content-script-started';
private static SCRIPT_STARTED_MESSAGE_TYPE = getUniqueEventName(
'wxt:content-script-started',
);

private isTopFrame = window.self === window.top;
private abortController: AbortController;
Expand Down

0 comments on commit 52e5387

Please # to comment.