From e5de1ca783ee0c14e04b6d63f677cbb852b168f1 Mon Sep 17 00:00:00 2001 From: amelia Date: Mon, 9 May 2022 10:58:25 -0500 Subject: optional desktop app update --- index.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 index.js (limited to 'index.js') diff --git a/index.js b/index.js new file mode 100644 index 0000000..b6a6087 --- /dev/null +++ b/index.js @@ -0,0 +1,18 @@ +const { app, BrowserWindow } = require('electron') + +const path = require('path') +const createWindow = () => { + const win = new BrowserWindow({ + width: 800, + height: 600, + autoHideMenuBar: true, + icon: __dirname + '/icon.png', + frame: false + }) + + win.loadFile('index.html') + + } + app.whenReady().then(() => { + createWindow() + }) \ No newline at end of file -- cgit v1.2.3