Skip to content

ElectronWebContentsModule.getAllWebContents method

ElectronWebContentsModule › getAllWebContents

Unofficial

Returns an array of all WebContents instances. This will contain web contents for all windows, webviews, opened devtools, and devtools extension background pages.

Signature:

getAllWebContents(): ElectronWebContents[]

Returns: ElectronWebContents[]An array of all WebContents instances.