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

fire click only when notification was found

parent 89be6b9d
Loading
Loading
Loading
Loading
+3 −0
Changes for src/windows/LocalNotificationUtil.js: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -330,6 +330,9 @@ WinJS.Application.addEventListener('activated', function (args) {
    var id = args.detail.arguments,
        notification = exports.getAll([id])[0];

    if (!notification)
        return;

    exports.clearLocalNotification(id);
    exports.fireEvent('click', notification);
}, false);