From a400a8ffc1a5c8a5c4ecb2c0d153881f5b55d232 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 8 Dec 2018 20:06:07 +0300 Subject: add PluginHost.HOOK_INIT_COMPLETE (and make no_title_counters use it) --- plugins/no_title_counters/init.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'plugins/no_title_counters') diff --git a/plugins/no_title_counters/init.js b/plugins/no_title_counters/init.js index 1170bf3ef..6c0cb38e2 100644 --- a/plugins/no_title_counters/init.js +++ b/plugins/no_title_counters/init.js @@ -1,7 +1,9 @@ require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) { ready(function () { - App.updateTitle = function () { - document.title = "Tiny Tiny RSS"; - }; + PluginHost.register(PluginHost.HOOK_INIT_COMPLETE, () => { + App.updateTitle = function () { + document.title = "Tiny Tiny RSS"; + }; + }); }); }); -- cgit v1.2.3