Jelajahi Sumber

Improved performance for isPresent for windows

Sebastián Katzer 10 tahun lalu
induk
melakukan
74c4ff019a
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/windows/LocalNotificationCore.js

+ 1 - 1
src/windows/LocalNotificationCore.js

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