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

Fix and greatly simplify the example app #150

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mlalkaka
Copy link
Contributor

Perhaps there's something I'm misunderstanding here, but from what I
tell, the example app in this repo has been abandoned, and doesn't
actually work anymore. There are synax errors that cause it to fail at
runtime, due to the use of import in index.html. Furthermore, there is
a preload.js script that contains the same code that is in the
index.html file, but that preload.js file isn't being specified when
creating the BrowserWindow in main.js.

This change fixes these issues, and in doing so, it greatly simplifies
the example app.

Perhaps there's something I'm misunderstanding here, but from what I
tell, the example app in this repo has been abandoned, and doesn't
actually work anymore.  There are synax errors that cause it to fail at
runtime, due to the use of `import` in index.html. Furthermore, there is
a preload.js script that contains the same code that is in the
index.html file, but that preload.js file isn't being specified when
creating the `BrowserWindow` in main.js.

This change fixes these issues, and in doing so, it greatly simplifies
the example app.
We need to wait for document.body to become available before calling
`attachToInput`. Calling from `setTimeout` accomplishes that.
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

1 participant