Commit 12496c31 by Sebastián Katzer

fire click only when notification was found

parent 89be6b9d
...@@ -330,6 +330,9 @@ WinJS.Application.addEventListener('activated', function (args) { ...@@ -330,6 +330,9 @@ WinJS.Application.addEventListener('activated', function (args) {
var id = args.detail.arguments, var id = args.detail.arguments,
notification = exports.getAll([id])[0]; notification = exports.getAll([id])[0];
if (!notification)
return;
exports.clearLocalNotification(id); exports.clearLocalNotification(id);
exports.fireEvent('click', notification); exports.fireEvent('click', notification);
}, false); }, false);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment