Skip to content

Commit

Permalink
fix: enable node integration in electron 5
Browse files Browse the repository at this point in the history
Former-commit-id: 8ebfb67
  • Loading branch information
ci010 committed Jul 15, 2019
1 parent 99c5e77 commit 025deba
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/material.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ export default function setup(context, store) {
hasShadow: false,
maximizable: false,
icon: resolve(__static, 'apple-touch-icon.png'),
// nodeIntegration: false,
webPreferences: {
nodeIntegration: true,
},
});
mainRef.show();
context.configDock((dock) => {
Expand All @@ -44,7 +46,9 @@ export default function setup(context, store) {
hasShadow: false,
maximizable: false,
icon: resolve(__static, 'apple-touch-icon.png'),
// nodeIntegration: false,
webPreferences: {
nodeIntegration: true,
},
});
}
context.configTray((tray) => {
Expand Down

0 comments on commit 025deba

Please sign in to comment.