summaryrefslogtreecommitdiff
path: root/js/PluginHost.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-09 17:01:22 +0300
committerAndrew Dolgov <[email protected]>2021-03-09 17:01:22 +0300
commitae7b87bca976cce607fd0ef21bd1f7ba4ea62e3c (patch)
tree2519cf13ce1055036248c277082e4a366ecf1f31 /js/PluginHost.js
parent2160a86092e8070f7bffcc6f614fc13a7a982a57 (diff)
add HOOK_HEADLINE_MUTATIONS, HOOK_HEADLINE_MUTATIONS_SYNCED
Diffstat (limited to 'js/PluginHost.js')
-rw-r--r--js/PluginHost.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/PluginHost.js b/js/PluginHost.js
index caee79d58..b54f1ece3 100644
--- a/js/PluginHost.js
+++ b/js/PluginHost.js
@@ -17,6 +17,8 @@ const PluginHost = {
HOOK_HEADLINE_RENDERED: 12,
HOOK_COUNTERS_RECEIVED: 13,
HOOK_COUNTERS_PROCESSED: 14,
+ HOOK_HEADLINE_MUTATIONS: 15,
+ HOOK_HEADLINE_MUTATIONS_SYNCED: 16,
hooks: [],
register: function (name, callback) {
if (typeof(this.hooks[name]) == 'undefined')
@@ -25,7 +27,7 @@ const PluginHost = {
this.hooks[name].push(callback);
},
run: function (name, args) {
- //console.warn('PluginHost::run ' + name);
+ //console.warn('PluginHost.run', name);
if (typeof(this.hooks[name]) != 'undefined')
for (let i = 0; i < this.hooks[name].length; i++) {