summaryrefslogtreecommitdiff
path: root/plugins/no_title_counters
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2016-08-10 12:22:55 +0300
committerAndrew Dolgov <[email protected]>2016-08-10 12:22:55 +0300
commitf6d2787a8e139da6af412f87645402e0c193af01 (patch)
tree1f7c157410b0164aa5e1498c060f67a68606f036 /plugins/no_title_counters
parentfd539f280058f2606ba6a59403287b824b6fd195 (diff)
plugins: use require() to hook into dojo
Diffstat (limited to 'plugins/no_title_counters')
-rw-r--r--plugins/no_title_counters/init.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/no_title_counters/init.js b/plugins/no_title_counters/init.js
index 9c16856a2..06edfb3ba 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";
+ };
+ });
});