Skip to content

Commit

Permalink
Post SessionID to Parent (#882)
Browse files Browse the repository at this point in the history
send the sessionId in the same message that the queryId is being sent

J=SLAP-1450
TEST=manual

Launched iframe test site, performed a search and verified through console log in iframe-common.js onMessage() that a message is delivered to parent page with queryId and sessionId.
  • Loading branch information
yen-tt authored Jul 15, 2021
1 parent 5eb27da commit 4879d39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script/iframe-messaging.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ ANSWERS.core.storage.registerListener({
storageKey: 'query-id',
callback: id => {
window.parentIFrame.sendMessage(JSON.stringify({
queryId: id
queryId: id,
sessionId: ANSWERS.core.getOrSetupSessionId()
}));
}
});

0 comments on commit 4879d39

Please sign in to comment.