Skip to content

Commit

Permalink
[FIX] "Show window on unread changed" not working (#1286)
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan authored Aug 8, 2019
1 parent c9731fe commit 611066c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export default () => {


webview.on('ipc-message-unread-changed', (hostUrl, [badge]) => {
if (typeof unread === 'number' && localStorage.getItem('showWindowOnUnreadChanged') === 'true') {
if (typeof badge === 'number' && localStorage.getItem('showWindowOnUnreadChanged') === 'true') {
const mainWindow = remote.getCurrentWindow();
if (!mainWindow.isFocused()) {
mainWindow.once('focus', () => mainWindow.flashFrame(false));
Expand Down

0 comments on commit 611066c

Please sign in to comment.