Session.loadExtension method
Session › loadExtension
Unofficial
Loads a Chrome extension frompath. Signature:
loadExtension(path: string, options?: ElectronLoadExtensionOptions | undefined): Promise<ElectronExtension>Parameters:
| Parameter | Type | Description |
|---|---|---|
| path | string | The path to the unpacked extension. |
| options? | ElectronLoadExtensionOptions | undefined | Options controlling how the extension is loaded. |
Returns: Promise<ElectronExtension> — A promise that resolves with the loaded extension.