File size: 292 Bytes
97ee6cb
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import { emit } from "../core/system_bus.js";

window.sendInput = async function () {

    const input = document.getElementById("input").value;

    const response = await emit("USER_INPUT", {
        text: input
    });

    document.getElementById("output").innerHTML = response.message;
}