Skip to content

Commit

Permalink
add postMessage for command execution
Browse files Browse the repository at this point in the history
  • Loading branch information
FallenChromium committed Feb 23, 2024
1 parent aa2a3e2 commit d18a10d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/scgJs/core/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ SCWeb.core.Main = {
if (result.question !== undefined) {
const commandState = new SCWeb.core.CommandState(cmd_addr, cmd_args, fmt_addr);
SCWeb.ui.WindowManager.appendHistoryItem(result.question, commandState);
const message = {"type": "commandExecuted", "payload": {"state": commandState, "response": result}};
window.top.postMessage(message, "*")
} else {
alert("There are no any answer. Try another request");
}
Expand Down

0 comments on commit d18a10d

Please sign in to comment.