Fixing up cursor and color handling.

This commit is contained in:
Brad Nelson
2022-08-11 23:33:08 -07:00
parent dce538da4a
commit 5a676af894
3 changed files with 61 additions and 17 deletions

View File

@ -592,11 +592,18 @@ function getGlobalObj() {
var globalObj = getGlobalObj();
var module = VM(globalObj, ffi, heap);
Init();
function run() {
module.run();
setTimeout(run, 0);
}
setTimeout(run, 0);
if (globalObj.write) {
Init();
setTimeout(run, 0);
} else {
window.addEventListener('load', function() {
Init();
setTimeout(run, 0);
});
}
})();