fix #351: error alert on power shutdown

This commit is contained in:
antelle 2016-09-07 19:48:08 +03:00
parent b65f71da5e
commit d74bc86b29
2 changed files with 6 additions and 2 deletions

View File

@ -226,8 +226,10 @@ function mainWindowBlur() {
} }
function emitBackboneEvent(e, arg) { function emitBackboneEvent(e, arg) {
arg = JSON.stringify(arg); if (mainWindow && mainWindow.webContents) {
mainWindow.webContents.executeJavaScript(`Backbone.trigger('${e}', ${arg});`); arg = JSON.stringify(arg);
mainWindow.webContents.executeJavaScript(`Backbone.trigger('${e}', ${arg});`);
}
} }
function setMenu() { function setMenu() {

View File

@ -1,5 +1,7 @@
Release notes Release notes
------------- -------------
##### v1.3.2 (WIP)
`-` fix #351: error alert on power shutdown
##### v1.3.1 (2016-09-02) ##### v1.3.1 (2016-09-02)
`-` fix #337: storage sync error `-` fix #337: storage sync error