Explorar el Código

Improved performance for isTriggered for windows

Sebastián Katzer hace 10 años
padre
commit
f1f2217ee9
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/windows/LocalNotificationCore.js

+ 3 - 1
src/windows/LocalNotificationCore.js

@@ -305,7 +305,9 @@ exports.core = {
      *      Local notification ID
      */
     isTriggered: function (id) {
-        return this.getTriggeredIds().indexOf(id) > -1;
+        var toast = this.findToastById(id);
+
+        return toast && this.isToastTriggered(toast);
     },
 
     /**