Commit 46d49b23 authored by antoor's avatar antoor

Resolve the error window is closed

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