From 70f5dff81eda65d19f72971513df736a3127786f Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sun, 3 Feb 2019 12:01:57 +0000 Subject: [PATCH] Add a boot hook for modifying the tiddler store --- boot/boot.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boot/boot.js b/boot/boot.js index 78906fb8f..23cf25b23 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -2154,6 +2154,8 @@ $tw.boot.startup = function(options) { if($tw.preloadTiddlers) { $tw.wiki.addTiddlers($tw.preloadTiddlers); } + // Give hooks a chance to modify the store + $tw.hooks.invokeHook("th-boot-tiddlers-loaded"); // Unpack plugin tiddlers $tw.wiki.readPluginInfo(); $tw.wiki.registerPluginTiddlers("plugin",$tw.safeMode ? ["$:/core"] : undefined);