API > wxt/utils/inject-script > InjectScriptOptions
Interface: InjectScriptOptions
Contents
Properties
awaitExecution
awaitExecution?:
boolean
If true, the function will return a promise that resolves when the script has finished loading. Only supported in MV3.
Source
packages/wxt/src/utils/inject-script.ts:73
keepInDom
keepInDom?:
boolean
By default, the injected script is removed from the DOM after being injected. To disable this behavior, set this flag to true.
Source
packages/wxt/src/utils/inject-script.ts:68
Generated using typedoc-plugin-markdown and TypeDoc