File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
packages/electron-chrome-web-store/src/browser Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import * as path from 'path'
44import { registerWebStoreApi } from './api'
55import { loadAllExtensions } from './loader'
66export { loadAllExtensions } from './loader'
7- export { installExtension } from './installer'
7+ export { installExtension , downloadExtension } from './installer'
88import { initUpdater } from './updater'
99export { updateExtensions } from './updater'
1010import { getDefaultExtensionsPath } from './utils'
Original file line number Diff line number Diff line change @@ -174,7 +174,13 @@ export async function downloadExtensionFromURL(
174174 }
175175}
176176
177- async function downloadExtension ( extensionId : string , extensionsDir : string ) : Promise < string > {
177+ /**
178+ * Download and unpack extension to the given extensions directory.
179+ */
180+ export async function downloadExtension (
181+ extensionId : string ,
182+ extensionsDir : string ,
183+ ) : Promise < string > {
178184 const url = getExtensionCrxURL ( extensionId )
179185 return await downloadExtensionFromURL ( url , extensionsDir , extensionId )
180186}
You can’t perform that action at this time.
0 commit comments