Created
August 2, 2022 20:03
-
-
Save KenoLeon/fb5cd473a8560cbcb80d14f3590cf843 to your computer and use it in GitHub Desktop.
Electron Hello World JS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { app, BrowserWindow } = require('electron') | |
| const createWindow = () => { | |
| const win = new BrowserWindow({ | |
| width: 800, | |
| height: 600, | |
| }) | |
| win.loadFile('index.html') | |
| } | |
| app.whenReady().then(() => { | |
| createWindow() | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment