1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-01 13:00:49 +00:00

fix: import lingo macro when render title

This commit is contained in:
lin onetwo 2024-03-21 16:15:11 +08:00
parent 31ec1bdd50
commit 74879e1f54

View File

@ -29,7 +29,11 @@ var THROTTLE_REFRESH_TIMEOUT = 400;
exports.startup = function() { exports.startup = function() {
// Set up the title // Set up the title
$tw.titleWidgetNode = $tw.wiki.makeTranscludeWidget(PAGE_TITLE_TITLE,{document: $tw.fakeDocument, parseAsInline: true}); $tw.titleWidgetNode = $tw.wiki.makeTranscludeWidget(PAGE_TITLE_TITLE, {
document: $tw.fakeDocument,
parseAsInline: true,
importPageMacros: true,
});
$tw.titleContainer = $tw.fakeDocument.createElement("div"); $tw.titleContainer = $tw.fakeDocument.createElement("div");
$tw.titleWidgetNode.render($tw.titleContainer,null); $tw.titleWidgetNode.render($tw.titleContainer,null);
document.title = $tw.titleContainer.textContent; document.title = $tw.titleContainer.textContent;