X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=plugins%2Fno_title_counters%2Finit.js;h=06edfb3ba9725a42a6d4d9bc934e3272effb331d;hb=f6d2787a8e139da6af412f87645402e0c193af01;hp=9c16856a2ef732babeca08f8a0a210f61962beb7;hpb=fd539f280058f2606ba6a59403287b824b6fd195;p=tt-rss.git diff --git a/plugins/no_title_counters/init.js b/plugins/no_title_counters/init.js index 9c16856a..06edfb3b 100644 --- a/plugins/no_title_counters/init.js +++ b/plugins/no_title_counters/init.js @@ -1,5 +1,7 @@ -dojo.addOnLoad(function() { - updateTitle = function() { - document.title = "Tiny Tiny RSS"; - }; +require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) { + ready(function () { + updateTitle = function () { + document.title = "Tiny Tiny RSS"; + }; + }); });