Skip to content

Latest commit

 

History

History
65 lines (40 loc) · 1.43 KB

File metadata and controls

65 lines (40 loc) · 1.43 KB

extension

Documentation: Chrome Extension API

A promise-based wrapper for the Chrome extension API.

Methods


getBackgroundPage

getBackgroundPage(): Window | null

Returns the window object of the extension's background page, or null if no background page exists.

getViews

getViews(properties?: chrome.extension.FetchProperties): Window[]

Retrieves all active extension views (e.g., background, popup, options), optionally filtered by the specified properties.

isAllowedFileSchemeAccess

isAllowedFileSchemeAccess(): Promise<boolean>

Checks if the extension has permission to access file system URLs (file://).

isAllowedIncognitoAccess

isAllowedIncognitoAccess(): Promise<boolean>

Determines whether the extension is allowed to operate in incognito mode.

setUpdateUrlData

setUpdateUrlData(data: string): void

Sets the data string to be sent as part of the extension's update check URL.