💥 fix(widget/notification): red box on notifications that don't have an image

This commit is contained in:
retrozinndev
2025-06-09 20:33:33 -03:00
parent 7bdaed7e54
commit b92f7e2c58
+1 -1
View File
@@ -10,7 +10,7 @@ import Pango from "gi://Pango";
function getNotificationImage(notif: AstalNotifd.Notification|HistoryNotification): (string|undefined) { function getNotificationImage(notif: AstalNotifd.Notification|HistoryNotification): (string|undefined) {
const img = notif.image || notif.appIcon; const img = notif.image || notif.appIcon;
if(!img) if(!img || !img.includes('/'))
return undefined; return undefined;
switch(true) { switch(true) {