Hi,
[sorry I’m a javascript noob]
I’ve written a small plugin to add a new hotkey which toggle feeds sorting by title. It was working fine until the recents changes. I’ve pushed it here for reference:
https://git.tt-rss.org/ggrandou/tt-rss/commit/dd9ec39f7bb2e7a8e4ac92270fc784ee901d8885
I’ve tried to update init.js using no_title_counter plugin as an example without any luck:
require(['dojo/_base/kernel', 'dojo/ready', 'fox/AppBase'], function (dojo, ready) {
ready(function() {
console.log("> plugin toggle_sort_titles init.js");
App.hotkey_actions["feed_toggle_title"] = function() {
console.log("trigger feed_toggle_title");
};
});
});
console log:
> plugin toggle_sort_titles init.js
hostname.fqdn:115:106
TypeError: App is undefined
Stack trace:
[...]
By the way the no_title_counter plugin is failing to for the very same reason too
I really should start learning javascript…
Thanks.