mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-07-15 20:38:22 +02:00
Some output from the Linux VM!!
This commit is contained in:
parent
49a3f880fe
commit
ad8d8f50d1
6 changed files with 53 additions and 49 deletions
web/web-shell
|
@ -3,11 +3,11 @@ var emulator;
|
|||
// Whether or not to restore the VM state from a file. Set to false to perform a regular boot.
|
||||
let restoreState = true;
|
||||
|
||||
async function testy() {
|
||||
return await new Promise((resolve, reject) => {
|
||||
function testy(cmd) {
|
||||
return new Promise((resolve, reject) => {
|
||||
setTimeout(() => {
|
||||
resolve("testy");
|
||||
}, 1000);
|
||||
resolve("testy!!" + cmd);
|
||||
}, 100);
|
||||
});
|
||||
}
|
||||
window.testy = testy;
|
||||
|
@ -40,7 +40,7 @@ function run_in_vm(cmd) {
|
|||
});
|
||||
}
|
||||
window.run_in_vm = run_in_vm;
|
||||
window.web_shell = { run_in_vm: run_in_vm };
|
||||
window.web_shell = { run_in_vm, testy };
|
||||
|
||||
/*
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue