From bf58006e72dec7c9053d2655d4425a593179efed Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Fri, 19 Nov 2021 22:43:29 +0100 Subject: [PATCH] clean up --- electron-serve.js | 15 +++++++++------ index.html | 19 ------------------- 2 files changed, 9 insertions(+), 25 deletions(-) delete mode 100644 index.html 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 . - - - - -