loadExtension
resolves when the extension is loaded.
This method will raise an exception if the extension could not be loaded. If there are warnings when installing the extension (e.g. if the extension requests an API that Electron does not support) then they will be logged to the console.
Note that Electron does not support the full range of Chrome extensions APIs. See Supported Extensions APIs for more details on what is supported.
Note that in previous versions of Electron, extensions that were loaded would be remembered for future runs of the application. This is no longer the case: loadExtension
must be called on every boot of your app if you want the extension to be loaded.
This API does not support loading packed (.crx) extensions.
Note: This API cannot be called before the ready
event of the app
module is emitted.
Note: Loading extensions into in-memory (non-persistent) sessions is not supported and will throw an error.