-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: open browser reuse logic #12535
Conversation
Run & review this pull request in StackBlitz Codeflow. |
return true | ||
} | ||
} catch (err) { | ||
// Ignore errors | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO the try catch before felt more natural
} else {
crossPlatformStart()
}
} catch (err) {
crossPlatformStart()
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can no longer use a catch here except if we create an execAsync
wrapper, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yeah true exec is not promise based... 🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I sort of feel like an execAsync
wrapper would be easier to read too, since this isn't hot code we could use async..await here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 👍🏼
Description
@bluwy @ArnaudBarre we merged #12510 too quickly 😅
What is the purpose of this pull request?