mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Fix SVG favicons
This commit is contained in:
parent
34181230c7
commit
bf6735420d
@ -36,11 +36,7 @@ function setFavicon() {
|
||||
var tiddler = $tw.wiki.getTiddler(FAVICON_TITLE);
|
||||
if(tiddler) {
|
||||
var faviconLink = document.getElementById("faviconLink");
|
||||
if(tiddler.fields._canonical_uri) {
|
||||
faviconLink.setAttribute("href",tiddler.fields._canonical_uri);
|
||||
} else {
|
||||
faviconLink.setAttribute("href","data:" + tiddler.fields.type + ";base64," + tiddler.fields.text);
|
||||
}
|
||||
faviconLink.setAttribute("href",$tw.utils.makeDataUri(tiddler.fields.text,tiddler.fields.type,tiddler.fields._canonical_uri));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
created: 20131224074240979
|
||||
modified: 20200422163752597
|
||||
modified: 20200510115704738
|
||||
tags: [[Customise TiddlyWiki]]
|
||||
title: Setting a favicon
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
"favicons" are small icons that most browsers display to help users identify websites.
|
||||
"favicons" are small icons that most browsers display to help users identify websites. Note that all browsers support bitmap images, but only certain modern browsers support SVG format icons.
|
||||
|
||||
! favicons in the Browser
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user