Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Send the widgetId as part of all toWidget requests
Browse files Browse the repository at this point in the history
Addresses part of #6708

Signed-off-by: Travis Ralston <travpc@gmail.com>
  • Loading branch information
turt2live committed May 12, 2018
1 parent 0c6d2e9 commit 641c646
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/WidgetMessaging.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ export default class WidgetMessaging {
}

messageToWidget(action) {
action.widgetId = this.widgetId; // Required to be sent for all outbound requests

return this.toWidget.exec(action, this.target).then((data) => {
// Check for errors and reject if found
if (data.response === undefined) { // null is valid
Expand Down

0 comments on commit 641c646

Please sign in to comment.