Browse Source

add HOOK_HEADLINES_SCROLL_HANDLER

master
Andrew Dolgov 1 year ago
parent
commit
efde6d36c7
  1. 3
      js/Headlines.js
  2. 1
      js/PluginHost.js

3
js/Headlines.js

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

1
js/PluginHost.js

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

Loading…
Cancel
Save