You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To enable full support for Chrome extensions in Electron, install [electron-chrome-extensions](https://www.npmjs.com/package/electron-chrome-extensions).
@@ -37,7 +34,8 @@ Installs Chrome Web Store support in the specified session.
37
34
-`options`: An object with the following properties:
38
35
-`session`: The Electron session to enable the Chrome Web Store in. Defaults to `session.defaultSession`.
39
36
-`modulePath`: The path to the 'electron-chrome-web-store' module.
40
-
-`extensionsPath`: The path to the extensions directory. Defaults to 'Extensions/' under the app's userData path.
37
+
-`extensionsPath`: The path to the extensions directory. Defaults to 'Extensions/' in the app's userData path.
38
+
-`autoUpdate`: Whether to auto-update web store extensions at startup and once every 5 hours. Defaults to true.
41
39
-`loadExtensions`: A boolean indicating whether to load extensions installed by Chrome Web Store. Defaults to true.
42
40
-`allowUnpackedExtensions`: A boolean indicating whether to allow loading unpacked extensions. Only loads if `loadExtensions` is also enabled. Defaults to false.
43
41
-`allowlist`: An array of allowed extension IDs to install.
@@ -52,18 +50,8 @@ Loads all extensions from the specified directory.
52
50
-`options`: An object with the following property:
53
51
-`allowUnpacked`: A boolean indicating whether to allow loading unpacked extensions. Defaults to false.
54
52
55
-
> [!NOTE]\
56
-
> `installChromeWebStore` will automatically load installed extensions as long as the `loadExtensions` property is set to `true`.
57
-
58
-
### `downloadExtension`
59
-
60
-
Downloads an extension from the Chrome Web Store to the specified destination directory.
61
-
62
-
-`extensionId`: The ID of the extension to download.
63
-
-`destDir`: The destination directory where the extension will be downloaded. The directory is expected to exist.
64
-
65
-
> [!TIP]
66
-
> This API is designed to work in Node or Electron.
53
+
> [!NOTE]
54
+
> The `installChromeWebStore` API will automatically load web store extensions by default.
0 commit comments