]> git.wh0rd.org - tt-rss.git/blobdiff - plugins/no_url_hashes/init.js
plugins: use require() to hook into dojo
[tt-rss.git] / plugins / no_url_hashes / init.js
index a437a1f3ec472d09d6b8ed127880424e47a374b4..fc459672480140010ecfafbd616fa61ea5be136f 100644 (file)
@@ -1,4 +1,9 @@
-dojo.addOnLoad(function() {
-       hash_set = function() { };
-       hash_get = function() { };
+require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) {
+       ready(function () {
+               hash_set = function () {
+               };
+               hash_get = function () {
+               };
+       });
 });
+