Explorar o código

Improved performance for isTriggered for windows

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