const win = new BrowserWindow({ show: true, titleBarStyle: 'hidden',
backgroundColor:'#DCDCDC',
webPreferences: {
partition: 'persist:https://app.convo.com'
} })
win.setMenu(null);
win.once('ready-to-show', () => win.show())
win.loadURL(url)
console.log("event",event);
event.newGuest = win;
}else{
Main.shell.openExternal(url);
}
我想在加载新窗口时打开加载器
它正在更改背景颜色,直到重新加载页面,但我想显示加载器而不是背景颜色。它没有任何CSS样式(请参见BrowserWindow)docs