diff options
Diffstat (limited to 'js/PluginHost.js')
-rw-r--r-- | js/PluginHost.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/js/PluginHost.js b/js/PluginHost.js index 8e5ff32ec..f76b73464 100644 --- a/js/PluginHost.js +++ b/js/PluginHost.js @@ -11,6 +11,8 @@ PluginHost = { HOOK_PARAMS_LOADED: 8, HOOK_RUNTIME_INFO_LOADED: 9, HOOK_FLOATING_TITLE: 10, + HOOK_INIT_COMPLETE: 11, + HOOK_HEADLINE_RENDERED: 12, hooks: [], register: function (name, callback) { if (typeof(this.hooks[name]) == 'undefined') @@ -22,8 +24,9 @@ PluginHost = { //console.warn('PluginHost::run ' + name); if (typeof(this.hooks[name]) != 'undefined') - for (let i = 0; i < this.hooks[name].length; i++) - if (!this.hooks[name][i](args)) break; + for (let i = 0; i < this.hooks[name].length; i++) { + this.hooks[name][i](args); + } } }; |