|
@ -1,5 +1,6 @@ |
|
|
// Modules to control application life and create native browser window
|
|
|
// Modules to control application life and create native browser window
|
|
|
const {app, BrowserWindow} = require('electron') |
|
|
const {app, BrowserWindow} = require('electron') |
|
|
|
|
|
const path = require('path') |
|
|
|
|
|
|
|
|
// Keep a global reference of the window object, if you don't, the window will
|
|
|
// Keep a global reference of the window object, if you don't, the window will
|
|
|
// be closed automatically when the JavaScript object is garbage collected.
|
|
|
// be closed automatically when the JavaScript object is garbage collected.
|
|
@ -11,7 +12,7 @@ function createWindow () { |
|
|
width: 800, |
|
|
width: 800, |
|
|
height: 600, |
|
|
height: 600, |
|
|
webPreferences: { |
|
|
webPreferences: { |
|
|
nodeIntegration: true |
|
|
|
|
|
|
|
|
preload: path.join(__dirname, 'preload.js') |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|