Fix missing red dot on unread favicon
This commit is contained in:
parent
baa92eb1b3
commit
5f988d47b3
@ -291,7 +291,7 @@ const Main: FC<StateProps & DispatchProps> = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
function updateIcon(asUnread: boolean) {
|
function updateIcon(asUnread: boolean) {
|
||||||
document.querySelectorAll<HTMLLinkElement>('link[rel="icon"]')
|
document.querySelectorAll<HTMLLinkElement>('link[rel="icon"], link[rel="alternate icon"]')
|
||||||
.forEach((link) => {
|
.forEach((link) => {
|
||||||
if (asUnread) {
|
if (asUnread) {
|
||||||
if (!link.href.includes('favicon-unread')) {
|
if (!link.href.includes('favicon-unread')) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user