1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 06:05:55 +00:00

fix PluginHost run method.

callbacks have no return value and anyway we should not prevent
to run subsequent plugins because one has failed.
This commit is contained in:
Gilles Grandou
2018-12-08 19:14:40 +01:00
parent a0d332326c
commit 392ad0bd83

View File

@@ -24,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);
}
}
};