From 9df7cbd5299359413d04233860031ae008c5b152 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 9 Mar 2021 16:59:25 +0300 Subject: don't bother with updateTitle() --- init.js | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/init.js b/init.js index dd3d780..4689d89 100644 --- a/init.js +++ b/init.js @@ -1,4 +1,4 @@ -/* global require, App, Feeds */ +/* global require, App, Feeds, PluginHost */ require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) { ready(function() { @@ -46,21 +46,12 @@ require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) { link.href = canvas.toDataURL("image/x-icon"); }; } - - }); } - App.updateTitle = function() { - let tmp = "Tiny Tiny RSS"; - - if (App.global_unread > 0) { - tmp = "(" + App.global_unread + ") " + tmp; - } - + PluginHost.register(PluginHost.HOOK_COUNTERS_PROCESSED, () => { updateFaviconBadge(App.global_unread, Feeds.getUnread(-3, 0)); + }); - document.title = tmp; - } }); }); -- cgit v1.2.3