blob: 5cc33452dbfc81c5b4c140f22419aa33732e4f22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import {app, BrowserWindow} from 'electron'
let win : BrowserWindow | null = null
app.on('ready', () => {
win = new BrowserWindow({width: 1920, height: 1200})
win.loadURL('file://' + __dirname + '/index.html')
//win.webContents.openDevTools()
win.on('close', () => {
win = null
})
})
|