瀏覽代碼

Improved performance for isTriggered for windows

Sebastián Katzer 10 年之前
父節點
當前提交
f1f2217ee9
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/windows/LocalNotificationCore.js

+ 3 - 1
src/windows/LocalNotificationCore.js

@@ -305,7 +305,9 @@ exports.core = {
      *      Local notification ID
      */
     isTriggered: function (id) {
-        return this.getTriggeredIds().indexOf(id) > -1;
+        var toast = this.findToastById(id);
+
+        return toast && this.isToastTriggered(toast);
     },
 
     /**