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

Auto-convert title & message to string

parent 984f0d80
Loading
Loading
Loading
Loading
+8 −0
Changes for www/local-notification.js: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -155,6 +155,14 @@ LocalNotification.prototype = {
            options.date = new Date();
        }

        if (options.title) {
            options.title = options.title.toString();
        }

        if (options.message) {
            options.message = options.message.toString();
        }

        if (typeof options.date == 'object') {
            options.date = Math.round(options.date.getTime()/1000);
        }