Commit 44e97687 authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

Improved performance for isScheduled for windows

parent 74c4ff01
Loading
Loading
Loading
Loading
+3 −1
Changes for src/windows/LocalNotificationCore.js: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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);
    },

    /**