Update some button...unsure of what it does
This commit is contained in:
parent
99a461304f
commit
32d65660eb
1 changed files with 4 additions and 3 deletions
|
|
@ -57,9 +57,10 @@ fitAddon.fit();
|
||||||
|
|
||||||
|
|
||||||
window.onmessage = function(e) {
|
window.onmessage = function(e) {
|
||||||
if (e.data === 'hello') {
|
const commandWithPrefix = `${e.data}`;
|
||||||
// alert('It works!');
|
if (commandWithPrefix.substring(0,13) === "dt_ui_command") {
|
||||||
socket.emit("data", "ls\r");
|
let command = commandWithPrefix.replace("dt_ui_command ", '');
|
||||||
|
socket.emit("data", `${command}\r`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue