Repository navigation
Squirrel it away - #2319
Merged
Merged
Squirrel it away#2319
Conversation
joshaber
commented
Jul 25, 2017
| const parsedURL = URL.parse(url, true) | ||
| const hostname = parsedURL.hostname | ||
| const unknown: IUnknownAction = { name: 'unknown' } | ||
| const unknown: IUnknownAction = { name: 'unknown', url } |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Contributor
Author
|
🏷 🚀 |
shiftkey
suggested changes
Jul 26, 2017
shiftkey
left a comment
Member
There was a problem hiding this comment.
A couple of minor questions, but ❤️ for digging into this and testing the deployed builds like a pro.
| .catch(e => { | ||
| log.error(`Failed handling Squirrel event: ${arg}`, e) | ||
| }) | ||
| .then(() => { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| } | ||
|
|
||
| app.quit() | ||
| if (shellNeedsPatching(process)) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| mainWindow.restore() | ||
| } | ||
| let isDuplicateInstance = false | ||
| // If we're handling a Squirrel event we don't wanna enforce single instance. We |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Contributor
Author
|
🔰 |
shiftkey
approved these changes
Jul 26, 2017
Member
|
🌔 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2312
We were enforcing single instance even when we got a Squirrel event, which meant the updated instance would be quit before it had time to do anything.
Incidentally, this also caused a bug @niik had seen where the app would be focused after an update was downloaded.