Explorar o código

Auto-convert title & message to string

Sebastián Katzer %!s(int64=11) %!d(string=hai) anos
pai
achega
b36d37c2ef
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      www/local-notification.js

+ 8 - 0
www/local-notification.js

@@ -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);
         }