From cb61da113d37a6b2364d7c3b50459f7b0186ec25 Mon Sep 17 00:00:00 2001 From: crusader Date: Wed, 2 Dec 2020 17:16:32 +0900 Subject: [PATCH] bug fixed --- .../src/lib/services/notification.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/notification-electron/src/lib/services/notification.service.ts b/projects/notification-electron/src/lib/services/notification.service.ts index 11c0f0b..86471a1 100644 --- a/projects/notification-electron/src/lib/services/notification.service.ts +++ b/projects/notification-electron/src/lib/services/notification.service.ts @@ -170,8 +170,8 @@ export class NotificationService { constructor(options?: DefaultOptions) { this.__defaultOptions = _.assignIn(defaultOptions, options); this.__windowPooler = new WindowPooler( - !!this.__defaultOptions.windowPool!.min - ? this.__defaultOptions.windowPool!.min + !!this.__defaultOptions.windowPool?.min + ? this.__defaultOptions.windowPool?.min : 0 ); this.__basePosition = {x: 0, y: 0};