diff options
Diffstat (limited to 'js/notification.js')
-rw-r--r-- | js/notification.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/js/notification.js b/js/notification.js index 6e5bc01..4cfb844 100644 --- a/js/notification.js +++ b/js/notification.js @@ -13,8 +13,7 @@ /** * Initialise the notification */ - var Notif = function(jsonData){ - // TODO handle defaults + var Notif = function(jsonData) { this.app = jsonData.app; this.user = jsonData.user; this.timestamp = moment(jsonData.datetime).format('X'); @@ -23,7 +22,7 @@ this.subject = jsonData.subject; this.message = jsonData.message; this.link = jsonData.link; - this.actions = jsonData.actions; // TODO some parsing here? + this.actions = jsonData.actions; this.notification_id = jsonData.notification_id; }; |