From 0117f1896c92843b7cb7525a454ba9d3d6c8cf03 Mon Sep 17 00:00:00 2001 From: KevinWh0 <45321184+KevinWh0@users.noreply.github.com> Date: Fri, 3 May 2024 12:20:58 +0200 Subject: [PATCH] potential firefox fix --- packages/frontend/src/scripts/favicon-dot.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/scripts/favicon-dot.ts b/packages/frontend/src/scripts/favicon-dot.ts index 0229092ca7..143ad50c9a 100644 --- a/packages/frontend/src/scripts/favicon-dot.ts +++ b/packages/frontend/src/scripts/favicon-dot.ts @@ -50,8 +50,10 @@ class FavIconDot { private _createFaviconElem() { const newLink = document.createElement('link'); - newLink.rel = 'icon'; - newLink.href = '/favicon.ico'; + newLink.setAttribute('rel', 'icon'); + newLink.setAttribute('href', '/favicon.ico'); + newLink.setAttribute('type', 'image/x-icon'); + document.head.appendChild(newLink); return newLink; }