Skip to content

Commit

Permalink
Merge pull request #38 from Vages/master
Browse files Browse the repository at this point in the history
Make the package Electron 5 compatible
  • Loading branch information
rhysd committed May 16, 2019
2 parents 6aa4803 + e8d514b commit 6e373b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ export default function openAboutWindow(info_or_img_path: AboutWindowInfo | stri
titleBarStyle: 'hidden-inset',
show: !info.adjust_window_size,
icon: info.icon_path,
webPreferences: {
// For security reasons, nodeIntegration is no longer true by default when using Electron v5 or later
// nodeIntegration can be safely enabled as long as the window source is not remote
nodeIntegration: true,
},
},
info.win_options || {},
);
Expand Down

0 comments on commit 6e373b4

Please sign in to comment.