add HOOK_HEADLINES_SCROLL_HANDLER

This commit is contained in:
Andrew Dolgov 2021-03-12 12:29:26 +03:00
parent e85cba5958
commit efde6d36c7
2 changed files with 4 additions and 0 deletions

View File

@ -382,6 +382,9 @@ const Headlines = {
} }
} }
} }
PluginHost.run(PluginHost.HOOK_HEADLINES_SCROLL_HANDLER);
} catch (e) { } catch (e) {
console.warn("scrollHandler", e); console.warn("scrollHandler", e);
} }

View File

@ -20,6 +20,7 @@ const PluginHost = {
HOOK_HEADLINE_MUTATIONS: 15, HOOK_HEADLINE_MUTATIONS: 15,
HOOK_HEADLINE_MUTATIONS_SYNCED: 16, HOOK_HEADLINE_MUTATIONS_SYNCED: 16,
HOOK_HEADLINES_RENDERED: 17, HOOK_HEADLINES_RENDERED: 17,
HOOK_HEADLINES_SCROLL_HANDLER: 18,
hooks: [], hooks: [],
register: function (name, callback) { register: function (name, callback) {
if (typeof(this.hooks[name]) == 'undefined') if (typeof(this.hooks[name]) == 'undefined')