diff options
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 |