From 55f9050dc990689f0f0b8674caa62e4eb02489be Mon Sep 17 00:00:00 2001 From: AntoXa PRO Date: Tue, 3 Oct 2023 11:18:30 +0300 Subject: [PATCH] notify --- src/notification.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/notification.ts b/src/notification.ts index c7850a2..a512d15 100644 --- a/src/notification.ts +++ b/src/notification.ts @@ -7,8 +7,8 @@ export class NotificationItem implements TNotificationItem { code: string text: string - constructor(args: { code: string; text: string }) { - this.code = args.code + constructor(args: { text: string, code?: string }) { this.text = args.text + this.code = args.code || 'info' } }