Adjusted instant loading for new favicon link

This commit is contained in:
squidfunk
2021-03-09 21:42:30 +01:00
parent ce7ff4dcb0
commit 5c03e8fc9b
4 changed files with 7 additions and 7 deletions

View File

@@ -168,7 +168,7 @@ export function setupInstantLoading(
}
/* Hack: ensure absolute favicon link to omit 404s when switching */
const favicon = getElement<HTMLLinkElement>("link[rel='shortcut icon']")
const favicon = getElement<HTMLLinkElement>("link[rel=icon]")
if (typeof favicon !== "undefined")
favicon.href = favicon.href