|
@@ -7,7 +7,13 @@ let mainWindow
|
|
|
|
|
|
|
|
function createWindow () {
|
|
function createWindow () {
|
|
|
// Create the browser window.
|
|
// Create the browser window.
|
|
|
- mainWindow = new BrowserWindow({width: 800, height: 600})
|
|
|
|
|
|
|
+ mainWindow = new BrowserWindow({
|
|
|
|
|
+ width: 800,
|
|
|
|
|
+ height: 600,
|
|
|
|
|
+ webPreferences: {
|
|
|
|
|
+ nodeIntegration: true
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
|
|
|
// and load the index.html of the app.
|
|
// and load the index.html of the app.
|
|
|
mainWindow.loadFile('index.html')
|
|
mainWindow.loadFile('index.html')
|