fix #1451: fixed slow global auto-type on desktop

This commit is contained in:
antelle 2020-04-11 18:24:23 +02:00
parent 816c7776f7
commit dec0b4d171
No known key found for this signature in database
GPG Key ID: 094A2F2D6136A4EE
3 changed files with 10 additions and 5 deletions

View File

@ -317,6 +317,8 @@ Events.on('app-ready', () =>
}, 0)
);
global.Events = Events;
Launcher.remoteApp().on('remote-app-event', e => {
Events.emit(e.name, e.data);
});
export { Launcher };

View File

@ -347,10 +347,10 @@ function mainWindowFocus() {
function emitRemoteEvent(e, arg) {
if (mainWindow && mainWindow.webContents) {
arg = JSON.stringify(arg);
mainWindow.webContents.executeJavaScript(
`window.Events && Events.emit('${e}', ${arg}); void 0;`
);
app.emit('remote-app-event', {
name: e,
data: arg
});
}
}

View File

@ -1,5 +1,8 @@
Release notes
-------------
##### v1.13.3 (2020-04-11)
`-` fix #1451: fixed slow global auto-type on desktop
##### v1.13.2 (2020-04-09)
`+` files previously created as v4.1 will be written as v4.0
`+` fixed Docker build