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

Fix "Unknown property: autoClear" message

parent 82fc1dfb
Loading
Loading
Loading
Loading
+2 −0
Changes for www/local-notification-util.js: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -87,7 +87,9 @@ exports.mergeWithDefaults = function (options) {
    options.text = this.getValueFor(options, 'text', 'message');
    options.data = this.getValueFor(options, 'data', 'json');

    if (defaults.hasOwnProperty('autoClear')) {
        options.autoClear = this.getValueFor(options, 'autoClear', 'autoCancel');
    }

    if (options.autoClear !== true && options.ongoing) {
        options.autoClear = false;