File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,10 @@ export interface InstallExtensionOptions {
2828 session ?: Session ;
2929}
3030
31- type ExtensionApi = Pick < Session , 'getAllExtensions' | 'removeListener' | 'removeExtension' | 'loadExtension' > & {
31+ type ExtensionApi = Pick <
32+ Session ,
33+ 'getAllExtensions' | 'removeListener' | 'removeExtension' | 'loadExtension'
34+ > & {
3235 on : Extract < Session [ 'on' ] , ( event : 'extension-unloaded' , ...args : any ) => any > ;
3336} ;
3437
@@ -77,10 +80,10 @@ export async function installExtension(
7780 throw new Error ( `Invalid extensionReference passed in: "${ extensionReference } "` ) ;
7881 }
7982
80-
81- const extensionApi : ExtensionApi = 'extensions' in targetSession
82- ? ( targetSession as unknown as { extensions : ExtensionApi } ) . extensions
83- : targetSession ;
83+ const extensionApi : ExtensionApi =
84+ 'extensions' in targetSession
85+ ? ( targetSession as unknown as { extensions : ExtensionApi } ) . extensions
86+ : targetSession ;
8487 const installedExtension = extensionApi . getAllExtensions ( ) . find ( ( e ) => e . id === chromeStoreID ) ;
8588
8689 if ( ! forceDownload && installedExtension ) {
You can’t perform that action at this time.
0 commit comments