File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ abstract class FreshChromiumBasedInterceptor implements Interceptor {
139139 await delay ( 1000 ) ; // No hurry, make sure the browser & related processes have all cleaned up
140140
141141 const activeBrowserCount = Object . keys ( this . activeBrowsers ) . length ;
142- const profilePath = snapProfilePath ?? browserDetails ? .profile ;
142+ const profilePath = snapProfilePath ?? ( browserDetails as any ) . profile ;
143143 if ( activeBrowserCount === 0 && typeof profilePath === 'string' ) {
144144 // If we were the last browser and we have a profile path, and it's definitely part of our
145145 // local/snap config (just in case something's gone wrong) -> delete it & reset everything.
@@ -340,8 +340,8 @@ abstract class ExistingChromiumBasedInterceptor implements Interceptor {
340340 if ( process . platform === 'win32' ) {
341341 // Try to cleanly close if we can, rather than killing Chrome directly:
342342 try {
343- await windowsClose ( browser ! . pid )
344- . then ( ( ) => waitForExit ( browser ! . pid ) ) ;
343+ await windowsClose ( browser . pid ! )
344+ . then ( ( ) => waitForExit ( browser . pid ! ) ) ;
345345 return ;
346346 } catch ( e ) { } // If this fails/times out, kill like we do elsewhere:
347347 }
You can’t perform that action at this time.
0 commit comments