1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:25:59 +00:00

add PluginHost.HOOK_INIT_COMPLETE (and make no_title_counters use it)

This commit is contained in:
Andrew Dolgov
2018-12-08 20:06:07 +03:00
parent f3737c0b24
commit a400a8ffc1
3 changed files with 9 additions and 5 deletions

View File

@@ -11,6 +11,7 @@ PluginHost = {
HOOK_PARAMS_LOADED: 8,
HOOK_RUNTIME_INFO_LOADED: 9,
HOOK_FLOATING_TITLE: 10,
HOOK_INIT_COMPLETE: 11,
hooks: [],
register: function (name, callback) {
if (typeof(this.hooks[name]) == 'undefined')

View File

@@ -117,8 +117,6 @@ require(["dojo/_base/kernel",
}
});
Cookie.delete("ttrss_test");
const toolbar = document.forms["toolbar-main"];
dijit.getEnclosingWidget(toolbar.view_mode).attr('value',
@@ -147,6 +145,9 @@ require(["dojo/_base/kernel",
}
console.log("second stage ok");
PluginHost.run(PluginHost.HOOK_INIT_COMPLETE, null);
},
updateTitle: function() {
let tmp = "Tiny Tiny RSS";