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); });