Преглед на файлове

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
      */
     isPresent: function (id) {
-        return this.getAllIds().indexOf(id) > -1;
+        return !!this.findToastById(id);
     },
 
     /**