diff --git a/app/scripts/comp/launcher/launcher-electron.js b/app/scripts/comp/launcher/launcher-electron.js index e8e33dbd..ec844481 100644 --- a/app/scripts/comp/launcher/launcher-electron.js +++ b/app/scripts/comp/launcher/launcher-electron.js @@ -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 }; diff --git a/desktop/app.js b/desktop/app.js index 9003a91f..39afd68a 100644 --- a/desktop/app.js +++ b/desktop/app.js @@ -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 + }); } } diff --git a/release-notes.md b/release-notes.md index 200914dd..24b44a15 100644 --- a/release-notes.md +++ b/release-notes.md @@ -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