瀏覽代碼

Improved performance for isPresent for windows

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

+ 1 - 1
src/windows/LocalNotificationCore.js

@@ -283,7 +283,7 @@ exports.core = {
      *      Local notification ID
      *      Local notification ID
      */
      */
     isPresent: function (id) {
     isPresent: function (id) {
-        return this.getAllIds().indexOf(id) > -1;
+        return !!this.findToastById(id);
     },
     },
 
 
     /**
     /**