Skip to content

Commit

Permalink
explict enable of nodeIntegration
Browse files Browse the repository at this point in the history
  • Loading branch information
smariel committed Jan 19, 2019
1 parent ef276fc commit b53a744
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ app.on('ready', () => {

// Create the browser window.
renderers.PTree.browserWindow = new BrowserWindow({
width : 1200,
height : 800,
minWidth : 800
width : 1200,
height : 800,
minWidth : 800,
webPreferences : {nodeIntegration : true}
});

// and load the index.html of the app.
Expand Down Expand Up @@ -257,7 +258,8 @@ ipcMain.on('Item-editReq', (evt, itemStr, itemType) => {
modal : true,
resizable : false,
autoHideMenuBar : true,
useContentSize : true
useContentSize : true,
webPreferences : {nodeIntegration : true}
});

// Open the dev tools...
Expand Down Expand Up @@ -312,7 +314,8 @@ ipcMain.on('PartList-editReq', (evt, treeStr, partListStr) => {
parent : renderers.PTree.browserWindow,
modal : process.platform !== 'darwin',
resizable : true,
useContentSize : true
useContentSize : true,
webPreferences : {nodeIntegration : true}
});

// Open the dev tools...
Expand Down Expand Up @@ -369,7 +372,8 @@ ipcMain.on('Stats-openReq', (evt, initData) => {
height : 400,
resizable : true,
useContentSize : true,
alwaysOnTop : true
alwaysOnTop : true,
webPreferences : {nodeIntegration : true}
});
}

Expand Down Expand Up @@ -435,6 +439,7 @@ ipcMain.on('Popup-openReq', (evt, popupData) => {
minimizable : false,
maximizable : false,
useContentSize : true,
webPreferences : {nodeIntegration : true}
});

// Open the dev tools...
Expand Down Expand Up @@ -486,7 +491,8 @@ let openAboutWindow = () => {
autoHideMenuBar : true,
useContentSize : true,
thickFrame : true,
titleBarStyle : 'hiddenInset'
titleBarStyle : 'hiddenInset',
webPreferences : {nodeIntegration : true}
});

// Open the dev tools...
Expand Down

0 comments on commit b53a744

Please sign in to comment.