View on GitHub

tab-info-extension

Home > tab-info > getPageInfo

getPageInfo() function

Create a PageInfo object based on the content of the current tab

Signature:

export declare function getPageInfo(documentApi: ContentDocumentAPI, sendMessage: SendMessageFn<MessageKey>): Promise<PageInfo>;

Parameters

Parameter Type Description
documentApi ContentDocumentAPI partial document DOM API
sendMessage SendMessageFn<MessageKey>  

Returns:

Promise<PageInfo>