diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index 12ca9b8c1..d08f49dc4 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -736,7 +736,7 @@ const GtkNotificationDaemonNotification = new Lang.Class({ } this._defaultAction = defaultAction ? defaultAction.unpack() : null; - this._defaultActionTarget = defaultActionTarget ? defaultActionTarget.unpack() : null; + this._defaultActionTarget = defaultActionTarget; this.update(title.unpack(), body ? body.unpack() : null, { gicon: gicon }); }, @@ -754,7 +754,7 @@ const GtkNotificationDaemonNotification = new Lang.Class({ _onButtonClicked: function(button) { let { "action": action, "action-target": actionTarget } = button; - this._activateAction(action, actionTarget); + this._activateAction(action.unpack(), actionTarget); }, _onClicked: function() {