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};