change electron hide/show elements
bump rev 4.7.0
This commit is contained in:
parent
95fbd885de
commit
c7a205fb25
7 changed files with 17 additions and 16 deletions
|
|
@ -78,12 +78,15 @@ function createWindow() {
|
|||
if (url.endsWith('/mesh') || url.endsWith('/mesh/')) {
|
||||
return;
|
||||
}
|
||||
if (url.endsWith('/void') || url.endsWith('/void/')) {
|
||||
return;
|
||||
}
|
||||
event.preventDefault();
|
||||
shell.openExternal(url);
|
||||
});
|
||||
|
||||
webContents.on('did-finish-load', () => {
|
||||
mainWindow.webContents.executeJavaScript(`{ let x = document.getElementById('app-quit'); if (x) { x.onclick = () => window.close() } }; null;`);
|
||||
// console.log('did finish load');
|
||||
});
|
||||
|
||||
if (devel) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue