From 0a68020771fc5b9dd437a90d5aac5e8a0c66719b Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 29 Dec 2023 00:01:11 -0500 Subject: Fix google docs (#473) * Add support for content script execution world * Update manifest version to support world parameter in Chromium browsers * Update google docs injection * Reuse code for registration * Add info --- types/ext/script-manager.d.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'types/ext') diff --git a/types/ext/script-manager.d.ts b/types/ext/script-manager.d.ts index 66a5c20f..6a1f9e26 100644 --- a/types/ext/script-manager.d.ts +++ b/types/ext/script-manager.d.ts @@ -29,6 +29,8 @@ export type RegistrationDetails = { css?: string[]; /** List of script paths. */ js?: string[]; + /** The execution world for the script. */ + world?: ExecutionWorld; }; export type ContentScriptInjectionDetails = { @@ -39,3 +41,5 @@ export type ContentScriptInjectionDetails = { js?: string[]; urlRegex: RegExp | null; }; + +export type ExecutionWorld = 'MAIN' | 'ISOLATED'; -- cgit v1.2.3