Samuel Attard
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
1 deletions
-
main.js
|
|
@ -7,7 +7,13 @@ let mainWindow |
|
|
|
|
|
|
|
function createWindow () { |
|
|
|
// 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.
|
|
|
|
mainWindow.loadFile('index.html') |
|
|
|