summaryrefslogtreecommitdiff
path: root/js/Headlines.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/Headlines.js
parent2160a86092e8070f7bffcc6f614fc13a7a982a57 (diff)
add HOOK_HEADLINE_MUTATIONS, HOOK_HEADLINE_MUTATIONS_SYNCED
Diffstat (limited to 'js/Headlines.js')
-rwxr-xr-xjs/Headlines.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/Headlines.js b/js/Headlines.js
index 28e43be1f..8d7e06f41 100755
--- a/js/Headlines.js
+++ b/js/Headlines.js
@@ -72,6 +72,8 @@ const Headlines = {
}
});
+ PluginHost.run(PluginHost.HOOK_HEADLINE_MUTATIONS, mutations);
+
Headlines.updateSelectedPrompt();
if ('requestIdleCallback' in window)
@@ -198,6 +200,8 @@ const Headlines = {
console.log('requesting counters for', feeds, labels);
Feeds.requestCounters(feeds, labels);
}
+
+ PluginHost.run(PluginHost.HOOK_HEADLINE_MUTATIONS_SYNCED, results);
});
},
click: function (event, id, in_body) {