use requestAnimationFrame on desktop

This commit is contained in:
Evan Almloff committed 2023-12-04 20:45:26 -06:00
1 parent 856fb1874e
commit 71f7481ded
1 file changed
+3 -1
+3 -1
View File
@@ -44,7 +44,9 @@ fn main() {
.then(response => {{
response.arrayBuffer()
.then(bytes => {{
run_from_bytes(bytes);
requestAnimationFrame(() => {{
run_from_bytes(bytes);
}});
window.interpreter.wait_for_request();
}});
}})