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

Add JS PluginHost.HOOK_PARAMS_LOADED and PluginHost.HOOK_RUNTIME_INFO_LOADED to notify when interesting info has been created/updated.

This commit is contained in:
supahgreg
2013-04-27 11:01:54 -05:00
parent abbe9c1f55
commit 8ceea119a8
3 changed files with 8 additions and 1 deletions

View File

@@ -753,6 +753,8 @@ function parse_runtime_info(data) {
init_params[k] = v;
notify('');
}
PluginHost.run(PluginHost.HOOK_RUNTIME_INFO_LOADED, data);
}
function collapse_feedlist() {
@@ -992,7 +994,7 @@ function handle_rpc_json(transport, scheduled_call) {
if (counters)
parse_counters(counters, scheduled_call);
var runtime_info = reply['runtime-info'];;
var runtime_info = reply['runtime-info'];
if (runtime_info)
parse_runtime_info(runtime_info);