mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 13:35:56 +00:00
fix various minor issues reported by eslint
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
// based on http://www.velvetcache.org/2010/08/19/a-simple-javascript-hooks-system
|
||||
|
||||
|
||||
/* exported PluginHost */
|
||||
const PluginHost = {
|
||||
HOOK_ARTICLE_RENDERED: 1,
|
||||
HOOK_ARTICLE_RENDERED_CDM: 2,
|
||||
@@ -31,7 +33,7 @@ const PluginHost = {
|
||||
}
|
||||
},
|
||||
unregister: function (name, callback) {
|
||||
for (var i = 0; i < this.hooks[name].length; i++)
|
||||
for (let i = 0; i < this.hooks[name].length; i++)
|
||||
if (this.hooks[name][i] == callback)
|
||||
this.hooks[name].splice(i, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user