UNPKG

webext-active-tab

Version:

WebExtension module: Track `activeTab` permission; automatically inject content scripts

8 lines (7 loc) 522 B
export declare function isContentScriptStaticallyRegistered(url: string): boolean; export declare function isContentScriptDynamicallyRegistered(url: string): Promise<boolean>; /** Checks whether a URL will have the content scripts automatically injected. It returns a promise that resolves with string indicating the type of injection ('static' or 'dynamic') or `false` if it won't be injected on the specified URL. */ export declare function isContentScriptRegistered(url: string): Promise<'static' | 'dynamic' | false>;