Skip to content

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

@abenson229

Description

@abenson229

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions