Просмотр исходного кода

Improved performance for isPresent for windows

Sebastián Katzer 10 лет назад
Родитель
Сommit
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);
     },
 
     /**