-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Fails to operate properly #56
Comments
OK... After much tinkering, the initial error I posted was due to this module bundling into my webpack output. However, I think due to my app growing, some initialization timing affects whether the This is also detailed in Electron's docs regarding
Furthermore, this module relies too much on timing and requires a I have a PR coming soon to fix a lot of these issues, hopefully it satisfies anyone having lifecycle issues. |
Environment
Electron: 1.7.5, Win10 (latest)
Using webpack (if that matters) and TypeScript. Can provide more information if necessary.
Issue
Using the exact copy/paste example given in the readme, I recieve:
However, it SEMI works when executed within
app.on('ready', => {})
.....{showDevTools: true}
doesn't wait for anything and just focuses the active window and operates correctly.But there is one HUGE caveat.
Since it's executed WITHIN this handler, it never adds the
localShortcut
s or actually install thedevtron
extension since the event has already fired.Suggestion:
Utilize
app.isReady()
to execute immediately if Ready, and add handler if not... or alter flow of operations.The text was updated successfully, but these errors were encountered: