Skip to content

Commit

Permalink
Improve Electron 9 compatibility (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwangure authored Jun 6, 2020
1 parent be919ee commit 5e644eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class ElectronStore extends Conf {
}

openInEditor() {
electron.shell.openItem(this.path);
const open = electron.shell.openItem || electron.shell.openPath;
open(this.path);
}
}

Expand Down

0 comments on commit 5e644eb

Please sign in to comment.