💥 fix(widget/notification): red box on notifications that don't have an image
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user