Skip to content

ElectronWebContents.getType method

ElectronWebContents › getType

Unofficial

Returns the type of the web contents.

Signature:

getType(): 'backgroundPage' | 'browserView' | 'offscreen' | 'remote' | 'webview' | 'window'

Returns: 'backgroundPage' | 'browserView' | 'offscreen' | 'remote' | 'webview' | 'window'The type of the web contents.