aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHolden Rohrer <holden.rohrer@gmail.com>2020-01-09 15:13:29 -0500
committerHolden Rohrer <holden.rohrer@gmail.com>2020-01-09 15:13:29 -0500
commit04cc0029afb7e65eaa0316ab2f1c671c1a4100b7 (patch)
tree75f281d8458af93dbabef4274e6766f608b6a744 /examples
parente3b0e5f511e09e06a4d10cce7c28cbe669755cb6 (diff)
added write.enable timeout in jarvis
Diffstat (limited to 'examples')
-rw-r--r--examples/jarvis.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/jarvis.js b/examples/jarvis.js
index 76e8aa1..2fec17d 100644
--- a/examples/jarvis.js
+++ b/examples/jarvis.js
@@ -23,7 +23,7 @@ main.on('tileUpdate', tileHandler);
//// Configurable helpers for utilities
function init(send){
sender = send;
- writes.enable();
+ setTimeout(()=>{writes.enable},1000); // Would fail if a write were added because it would be within a second of cursor send
}
function deinit(){