Explorar o código

Improved performance for isScheduled for windows

Sebastián Katzer %!s(int64=10) %!d(string=hai) anos
pai
achega
44e9768702
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/windows/LocalNotificationCore.js

+ 3 - 1
src/windows/LocalNotificationCore.js

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