소스 검색

Repeating notifications are always scheduled and not triggered

Sebastián Katzer 10 년 전
부모
커밋
19ea10da08
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/windows/LocalNotificationUtil.js

+ 3 - 0
src/windows/LocalNotificationUtil.js

@@ -255,6 +255,9 @@ exports.isToastTriggered = function (toast) {
         notification = this.getAll(id)[0];
         fireDate = new Date((notification.at) * 1000);
 
+    if (this.isRepeating(notification))
+        return false;
+
     return fireDate <= new Date();
 };