From 975b6b3dd0f34731ad442480fc39e9a741ad76dc Mon Sep 17 00:00:00 2001 From: KevinWh0 <45321184+KevinWh0@users.noreply.github.com> Date: Fri, 3 May 2024 12:15:47 +0200 Subject: [PATCH] fixed querySelector that would grab favicon --- packages/frontend/src/scripts/favicon-dot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/scripts/favicon-dot.ts b/packages/frontend/src/scripts/favicon-dot.ts index c40a08f427..0229092ca7 100644 --- a/packages/frontend/src/scripts/favicon-dot.ts +++ b/packages/frontend/src/scripts/favicon-dot.ts @@ -36,7 +36,7 @@ class FavIconDot { private async getOrMakeFaviconElement() : Promise { return new Promise((resolve, reject) => { - const favicon = document.querySelector('link[rel$=icon]') ?? this._createFaviconElem(); + const favicon = (document.querySelector('link[rel=icon]') ?? this._createFaviconElem()) as HTMLLinkElement; favicon.addEventListener('load', () => { resolve(favicon); });