diff --git a/electron-serve.js b/electron-serve.js index 9a8babf..c35a15a 100644 --- a/electron-serve.js +++ b/electron-serve.js @@ -8,13 +8,16 @@ const loadURL = serve({directory: 'hen'}); let mainWindow; (async () => { - await app.whenReady(); + await app.whenReady(); - mainWindow = new BrowserWindow(); + mainWindow = new BrowserWindow({ + width: 1280, + height: 720 + }); - await loadURL(mainWindow); + await loadURL(mainWindow); - // The above is equivalent to this: - await mainWindow.loadURL('app://-'); - // The `-` is just the required hostname + // The above is equivalent to this: + await mainWindow.loadURL('app://-'); + // The `-` is just the required hostname })(); diff --git a/index.html b/index.html deleted file mode 100644 index d3c0164..0000000 --- a/index.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - Hello World! - - -

Hello World!

- We are using Node.js , - Chromium , - and Electron . - - - - -