Extension Port (ports)
Classes
ExtensionPort
import { ExtensionPort } from '@hexajs-dev/ports';
class ExtensionPort { ... }
Methods
getBackgroundPage()
getBackgroundPage(): Window | null
getURL()
getURL(path?: string): string
getViews()
getViews(fetchProperties?: GetViewsFetchProperties): Window[]
isAllowedFileSchemeAccess()
isAllowedFileSchemeAccess(): Promise<boolean>
isAllowedIncognitoAccess()
isAllowedIncognitoAccess(): Promise<boolean>
Supporting Types
GetViewsFetchProperties
interface GetViewsFetchProperties {
type?: 'tab' | 'popup' | 'background';
windowId?: number;
}