From 663072ec477ba1c0aad8e76449a8f59a5ff197f7 Mon Sep 17 00:00:00 2001 From: dakkar Date: Tue, 18 Mar 2025 20:15:10 +0000 Subject: [PATCH] nicer catches --- packages/frontend/src/scripts/favicon-dot.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/scripts/favicon-dot.ts b/packages/frontend/src/scripts/favicon-dot.ts index c75ef23b19..a903b4cc7f 100644 --- a/packages/frontend/src/scripts/favicon-dot.ts +++ b/packages/frontend/src/scripts/favicon-dot.ts @@ -90,7 +90,7 @@ class FavIconDot { if (this.faviconEL) { try { URL.revokeObjectURL(this.faviconEL.href); - } catch (error) { + } catch { // the href was probably not an object URL } this.canvas.toBlob((blob) => { @@ -133,7 +133,7 @@ export async function setFavIconDot(visible: boolean) { try { (icon as FavIconDot).setVisible(visible); } catch (error) { - //Probably failed due to CORS and a dirty canvas + console.error('error setting notification dot', error); } };