Skip to content

Commit c6ece42

Browse files
committed
Update the postMessage format to be consistent with cyberchef's internal functions
1 parent 7710c5e commit c6ece42

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/web/waiters/InputWaiter.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1664,8 +1664,9 @@ class InputWaiter {
16641664
* @param {string} e.data.value - the value of the message
16651665
*/
16661666
handlePostMessage(e) {
1667-
if ("data" in e && "type" in e.data && "value" in e.data) {
1668-
if (e.data.type === "dataSubmit") {
1667+
log.debug(e);
1668+
if ("data" in e && "id" in e.data && "value" in e.data) {
1669+
if (e.data.id === "setInput") {
16691670
this.setInput(e.data.value);
16701671
}
16711672
}

0 commit comments

Comments
 (0)