Commit 46d49b23 authored by antoor's avatar antoor

Resolve the error window is closed

解决窗口关闭错误
parent 5dd25fbe
......@@ -150,14 +150,12 @@ class ViewSite {
minWidth: 888,
minHeight: 555,
show: false,
autoHideMenuBar: true,
webPreferences: {
nodeIntegration: false,
},
title: this.opts.url
});
win.on('close', () => {
win = null;
});
win.loadURL(url);
win.show();
win.openDevTools();
......
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