Update the postMessage format to be consistent with cyberchef's internal functions

This commit is contained in:
Ken Duguay 2025-05-09 14:20:13 +00:00
parent 7710c5ef49
commit c6ece4292b

View file

@ -1664,8 +1664,9 @@ class InputWaiter {
* @param {string} e.data.value - the value of the message * @param {string} e.data.value - the value of the message
*/ */
handlePostMessage(e) { handlePostMessage(e) {
if ("data" in e && "type" in e.data && "value" in e.data) { log.debug(e);
if (e.data.type === "dataSubmit") { if ("data" in e && "id" in e.data && "value" in e.data) {
if (e.data.id === "setInput") {
this.setInput(e.data.value); this.setInput(e.data.value);
} }
} }