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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser sync mirroring bug fixes #339

Merged
merged 6 commits into from
Jul 22, 2020
Merged

Browser sync mirroring bug fixes #339

merged 6 commits into from
Jul 22, 2020

Conversation

esprush
Copy link
Member

@esprush esprush commented Jul 20, 2020

No description provided.

@esprush esprush requested a review from manojVivek July 20, 2020 15:36
let browserSyncOptions;

if (!browserSyncOptions) {
browserSyncOptions = ipcRenderer.sendSync('request-browser-sync');
Copy link
Collaborator

Choose a reason for hiding this comment

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

@esprush Can you convert this to ipcRenderer.invoke instead of sendSync?
This is going to block the UI thread until the request is processed which is not right.

ui: false,
},
(err, bs) => {
resolve(bs);
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be like below:

if (err) {
  return reject(err);
}
resolve(bs);

@manojVivek manojVivek changed the title safe browser sync Browser sync mirroring bug fixes Jul 22, 2020
@manojVivek manojVivek added this to the v0.8.0 milestone Jul 22, 2020
@manojVivek manojVivek added this to In PR in App Roadmap Jul 22, 2020
@manojVivek manojVivek merged commit 5d44ba7 into master Jul 22, 2020
@manojVivek manojVivek deleted the bugfix/browser-sync branch July 22, 2020 03:53
@manojVivek manojVivek moved this from In PR to Ready for Release in App Roadmap Jul 22, 2020
@manojVivek manojVivek moved this from Ready for Release to Release v0.8.0 in App Roadmap Jul 22, 2020
@manojVivek manojVivek added the bug Something isn't working label Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
App Roadmap
  
Release v0.8.0
Development

Successfully merging this pull request may close these issues.

None yet

2 participants