Try to fix web-shell when called from Godot

This commit is contained in:
blinry 2023-09-08 15:23:48 +02:00
commit 5ff4ca6c28
7 changed files with 11 additions and 11 deletions
web/web-shell

View file

@ -112,9 +112,10 @@ function boot() {
emulator = window["emulator"] = new V86Starter(config)
// Wait for the emulator to start, then resolve the promise.
var interval = setInterval(() => {
var interval = setInterval(async () => {
if (emulator.is_running()) {
run("PS1='# '")
await run("PS1='# '")
await run("stty -echo")
clearInterval(interval)
resolve(true)
}