From 50b34dc86490f4304f3f6364aa3b6a41103de647 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Thu, 26 Sep 2024 16:13:41 -0300 Subject: [PATCH] feat: add catch --- src/main/services/notifications.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/services/notifications.ts b/src/main/services/notifications.ts index 92c9545c..c3e524d8 100644 --- a/src/main/services/notifications.ts +++ b/src/main/services/notifications.ts @@ -106,7 +106,7 @@ export const publishNewAchievementNotification = async ( iconUrl.split("/").pop() || "image.jpg" ); - await downloadImage(iconUrl, iconPath); + await downloadImage(iconUrl, iconPath).catch(() => {}); new Notification({ title: t("game_achievement_unlocked", {