Procházet zdrojové kódy

Improved performance for isScheduled for windows

Sebastián Katzer před 10 roky
rodič
revize
44e9768702
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  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);
     },
 
     /**