mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-22 03:04:31 -04:00
1 parent
f13ef3b102
commit
f905ad772e
1 file changed
+5
-2
+5
-2
@@ -1661,8 +1661,11 @@ function faviconNbUnread(n) {
|
||||
ctx.fillText(text, 0, canvas.height - 1);
|
||||
}
|
||||
link.href = canvas.toDataURL('image/png');
|
||||
document.querySelector('link[rel~=icon]').remove();
|
||||
document.head.appendChild(link);
|
||||
// Check if data URI has generated a real favicon and if not, fallback to standard icon
|
||||
if (link.href.length > 180) {
|
||||
document.querySelector('link[rel~=icon]').remove();
|
||||
document.head.appendChild(link);
|
||||
}
|
||||
};
|
||||
img.src = '../favicon.ico';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user