mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-18 18:20:49 +08:00
15 lines
286 B
JavaScript
15 lines
286 B
JavaScript
const { app, BrowserWindow } = require('electron')
|
|
|
|
function createWindow () {
|
|
const win = new BrowserWindow({
|
|
width: 800,
|
|
height: 600,
|
|
webPreferences: {
|
|
nodeIntegration: true,
|
|
}
|
|
})
|
|
|
|
win.loadURL('http://localhost:4678/')
|
|
}
|
|
|
|
app.whenReady().then(createWindow) |