mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-14 10:06:58 -04:00
Update the postMessage format to be consistent with cyberchef's internal functions
This commit is contained in:
parent
7710c5ef49
commit
c6ece4292b
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue