浏览代码

Fix crash when clicking on notification (WP8.1)

Sebastián Katzer 10 年之前
父节点
当前提交
b5df96eaba
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/windows/LocalNotificationUtil.js

+ 1 - 1
src/windows/LocalNotificationUtil.js

@@ -294,7 +294,7 @@ exports.isToastScheduled = function (toast) {
  */
  */
 exports.isToastTriggered = function (toast) {
 exports.isToastTriggered = function (toast) {
     var id = this.getToastId(toast),
     var id = this.getToastId(toast),
-        notification = this.getAll(id)[0];
+        notification = this.getAll([id])[0],
         fireDate = new Date((notification.at) * 1000);
         fireDate = new Date((notification.at) * 1000);
 
 
     if (this.isRepeating(notification))
     if (this.isRepeating(notification))