mirror of https://github.com/keeweb/keeweb
fixed desktop apps startup
parent
efb0c39d33
commit
49b5b3d41e
|
@ -307,7 +307,9 @@ function mainWindowFocus() {
|
|||
function emitRemoteEvent(e, arg) {
|
||||
if (mainWindow && mainWindow.webContents) {
|
||||
arg = JSON.stringify(arg);
|
||||
mainWindow.webContents.executeJavaScript(`Events.emit('${e}', ${arg}); void 0;`);
|
||||
mainWindow.webContents.executeJavaScript(
|
||||
`window.Events && Events.emit('${e}', ${arg}); void 0;`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue