Explorar el Código

Improved performance for isPresent for windows

Sebastián Katzer hace 10 años
padre
commit
74c4ff019a
Se han modificado 1 ficheros con 1 adiciones y 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);
     },
 
     /**