Commit b03366fe authored by antoor's avatar antoor

Rename `on` to `once`

修改on为once
parent de0e53fc
......@@ -5,8 +5,8 @@ const app = electron.app;
const BrowserWindow = electron.BrowserWindow;
app
.on('window-all-closed', app.quit)
.on('ready', () => {
.once('window-all-closed', app.quit)
.once('ready', () => {
let mainWindow = new BrowserWindow({
width: 1040,
height: 699,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment