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:
parent
31ec1bdd50
commit
74879e1f54
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user