aboutsummaryrefslogtreecommitdiff
path: root/ems/post_run.js
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-06 16:51:36 +1000
committerquou <quou@disroot.org>2023-05-06 16:51:36 +1000
commit4629675329f872c9dd4672402b9b9e5e593fec19 (patch)
treec2e42b6cd93d4b96ebea23177b2dfee3eeaed9ec /ems/post_run.js
parentec51d32ea0a30c138e690f637f38d83c086e02b9 (diff)
Building and running for emscripten.
Diffstat (limited to 'ems/post_run.js')
-rw-r--r--ems/post_run.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ems/post_run.js b/ems/post_run.js
new file mode 100644
index 0000000..b52a931
--- /dev/null
+++ b/ems/post_run.js
@@ -0,0 +1,3 @@
+addOnPostRun(function() {
+ document.getElementById('canvas').focus();
+});