Skip to content

API reference / Common / WebpageDocumentOptions

Interface: WebpageDocumentOptions ​

What webpageDocument is given.

Methods ​

canOpen()? ​

ts
optional canOpen(request): boolean | Promise<boolean>;

Whether the URL open was given is a page to frame: the host's own rule — its Figma or Loom embeds, say. Asked only of a URL source, when open was given no format. Without it, the web page document frames only a URL given format: "url".

Parameters ​

ParameterType
requestExtensionDocumentOpenRequest & object