From 3f5505907f7e5aee245e4741054960ab444d6cbf Mon Sep 17 00:00:00 2001 From: lilia Date: Wed, 12 Apr 2017 19:44:22 -0700 Subject: [PATCH] Fix setUnreadCount --- js/panel_controller.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/js/panel_controller.js b/js/panel_controller.js index 1c9da8474..1a73677c9 100644 --- a/js/panel_controller.js +++ b/js/panel_controller.js @@ -61,14 +61,10 @@ window.setUnreadCount = function(count) { if (count > 0) { extension.navigator.setBadgeText(count); - if (inboxOpened === true && appWindow) { - appWindow.contentWindow.document.title = "Signal (" + count + ")"; - } + window.document.title = "Signal (" + count + ")"; } else { extension.navigator.setBadgeText(""); - if (inboxOpened === true && appWindow) { - appWindow.contentWindow.document.title = "Signal"; - } + window.document.title = "Signal"; } };