Add a boot hook for modifying the tiddler store

This commit is contained in:
Jermolene 2019-02-03 12:01:57 +00:00
parent 689e172e79
commit 70f5dff81e
1 changed files with 2 additions and 0 deletions

View File

@ -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);