1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-29 11:30:28 +00:00

refactor: only import lingo macro for title to save memory

This commit is contained in:
lin onetwo 2024-03-21 17:33:05 +08:00
parent 74879e1f54
commit 36bf0848e0

View File

@ -32,7 +32,7 @@ exports.startup = function() {
$tw.titleWidgetNode = $tw.wiki.makeTranscludeWidget(PAGE_TITLE_TITLE, { $tw.titleWidgetNode = $tw.wiki.makeTranscludeWidget(PAGE_TITLE_TITLE, {
document: $tw.fakeDocument, document: $tw.fakeDocument,
parseAsInline: true, parseAsInline: true,
importPageMacros: true, importVariables: "[[$:/core/macros/lingo]]",
}); });
$tw.titleContainer = $tw.fakeDocument.createElement("div"); $tw.titleContainer = $tw.fakeDocument.createElement("div");
$tw.titleWidgetNode.render($tw.titleContainer,null); $tw.titleWidgetNode.render($tw.titleContainer,null);