fix: Favicon not showing

This commit is contained in:
Jaxon Lewis-Wilson
2026-01-23 09:27:14 +08:00
parent a151e7a07e
commit f05cd66e88
+6 -4
View File
@@ -50,10 +50,12 @@ async function init() {
documentLoadStyle.textContent = documentLoadCSS;
document.head.appendChild(documentLoadStyle);
const icon = document.querySelector(
'link[rel*="icon"]',
)! as HTMLLinkElement;
icon.href = icon48; // Change the icon
const icons =
document.querySelectorAll<HTMLLinkElement>('link[rel*="icon"]');
icons.forEach((link) => {
link.href = icon48;
});
try {
await initializeSettingsState();