Explorar o código

Improved performance for isPresent for windows

Sebastián Katzer %!s(int64=10) %!d(string=hai) anos
pai
achega
74c4ff019a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
     },
 
     /**