From e76e5f4b2ef9e33f147230a5e2230dae11844e54 Mon Sep 17 00:00:00 2001 From: heisenberg <110591045+heisenberg-2077@users.noreply.github.com> Date: Fri, 29 Sep 2023 10:52:11 +0800 Subject: [PATCH] fix: origin error (#1786) --- src/background/service/notification.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/background/service/notification.ts b/src/background/service/notification.ts index d93afadce8c..5f4f9995ea7 100644 --- a/src/background/service/notification.ts +++ b/src/background/service/notification.ts @@ -487,7 +487,7 @@ class NotificationService extends Events { }; private getOrigin(data = this.currentApproval?.data) { - return data?.params.origin || data?.origin; + return data?.params?.origin || data?.origin; } }