File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -246,13 +246,15 @@ abstract class ExistingChromiumBasedInterceptor implements Interceptor {
246246 launchOptions . options . push (
247247 '--no-default-browser-check' ,
248248 '--no-first-run' ,
249- '--disable-popup-blocking' // Required for hide-warning -> amiusing hop
249+ '--disable-popup-blocking' , // Required for hide-warning -> amiusing hop
250+ // If we killed something, use --restore-last-session to ensure it comes back:
251+ ...( existingPid ? [ '--restore-last-session' ] : [ ] ) ,
252+ // Passing the URL here instead of passing it to launchBrowser ensures that it isn't
253+ // opened in a separate window when launching on Mac
254+ hideWarningServer . hideWarningUrl
250255 ) ;
251256
252- // If we killed something, use --restore-last-session to ensure it comes back:
253- if ( existingPid ) launchOptions . options . push ( '--restore-last-session' ) ;
254-
255- const browser = await launchBrowser ( hideWarningServer . hideWarningUrl , {
257+ const browser = await launchBrowser ( "" , {
256258 ...launchOptions ,
257259 skipDefaults : true ,
258260 profile : null // Enforce that we use the default profile
You can’t perform that action at this time.
0 commit comments