Documentation: Chrome Extension API
A promise-based wrapper for the Chrome extension API.
- getBackgroundPage()
- getViews(properties?)
- isAllowedFileSchemeAccess()
- isAllowedIncognitoAccess()
- setUpdateUrlData(data)
getBackgroundPage(): Window | null
Returns the window object of the extension's background page, or null if no background page exists.
getViews(properties?: chrome.extension.FetchProperties): Window[]
Retrieves all active extension views (e.g., background, popup, options), optionally filtered by the specified properties.
isAllowedFileSchemeAccess(): Promise<boolean>
Checks if the extension has permission to access file system URLs (file://).
isAllowedIncognitoAccess(): Promise<boolean>
Determines whether the extension is allowed to operate in incognito mode.
setUpdateUrlData(data: string): void
Sets the data string to be sent as part of the extension's update check URL.