mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-12-02 06:48:06 +00:00
Add support for _canonical_uri field of $:/favicon.ico
This commit is contained in:
@@ -36,7 +36,11 @@ function setFavicon() {
|
||||
var tiddler = $tw.wiki.getTiddler(FAVICON_TITLE);
|
||||
if(tiddler) {
|
||||
var faviconLink = document.getElementById("faviconLink");
|
||||
faviconLink.setAttribute("href","data:" + tiddler.fields.type + ";base64," + tiddler.fields.text);
|
||||
if(tiddler.fields._canonical_uri) {
|
||||
faviconLink.setAttribute("href",tiddler.fields._canonical_uri);
|
||||
} else {
|
||||
faviconLink.setAttribute("href","data:" + tiddler.fields.type + ";base64," + tiddler.fields.text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user