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

Chapter 5 File open did not work for me as written #9

Open
abenson229 opened this issue Apr 21, 2017 · 0 comments
Open

Chapter 5 File open did not work for me as written #9

abenson229 opened this issue Apr 21, 2017 · 0 comments

Comments

@abenson229
Copy link

Using Electron v 1.4.13, the code to show the file open dialog did not work, either the book code or the latest update here.

in index.js I changed:
const remote = require('electron').remote;
const dialog = remote.require('dialog');

to:
const {dialog} = require('electron').remote;

and that allowed the showOpenDialog code to work.

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

No branches or pull requests

1 participant