Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: open browser reuse logic #12535

Merged
merged 2 commits into from Mar 22, 2023
Merged

fix: open browser reuse logic #12535

merged 2 commits into from Mar 22, 2023

Conversation

patak-dev
Copy link
Member

Description

@bluwy @ArnaudBarre we merged #12510 too quickly 馃槄


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

@stackblitz
Copy link

stackblitz bot commented Mar 22, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Comment on lines 104 to 108
return true
}
} catch (err) {
// Ignore errors
}
Copy link
Member

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()
}

Copy link
Member Author

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?

Copy link
Member

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... 馃檲

Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 馃憤馃徏

ArnaudBarre
ArnaudBarre previously approved these changes Mar 22, 2023
@patak-dev patak-dev merged commit 04d14af into main Mar 22, 2023
17 checks passed
@patak-dev patak-dev deleted the fix/open-browser-reuse-logic branch March 22, 2023 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants