diff options
author | amelia <[email protected]> | 2022-05-09 10:58:25 -0500 |
---|---|---|
committer | amelia <[email protected]> | 2022-05-09 10:58:25 -0500 |
commit | e5de1ca783ee0c14e04b6d63f677cbb852b168f1 (patch) | |
tree | 1bcb74bd49df451bd3335e458916ea00bce06452 /index.js | |
parent | 48442795718ce5497a773c5e909e2c7faa049201 (diff) |
optional desktop app update
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 18 |
1 files changed, 18 insertions, 0 deletions
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 |