diff options
author | Holden Rohrer <holden.rohrer@gmail.com> | 2019-12-29 20:03:27 -0500 |
---|---|---|
committer | Holden Rohrer <holden.rohrer@gmail.com> | 2019-12-29 20:03:27 -0500 |
commit | 84f6f0109b3e3e4ab6ee667403400ba31402a840 (patch) | |
tree | ef5afc5823daba463750d1627512d439bea4fe0a /examples | |
parent | 220fd99ffe9270b8d30e84b3d935ab0696f1a808 (diff) |
integrated queue disabling into jarvis
Diffstat (limited to 'examples')
-rw-r--r-- | examples/jarvis.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/jarvis.js b/examples/jarvis.js index 5103934..3572a3c 100644 --- a/examples/jarvis.js +++ b/examples/jarvis.js @@ -27,7 +27,11 @@ main.on('open', ()=>{ // Tries to identify itself with a cursor movement identity(send); } } -}) +}); + +main.on('close', ()=>{ + writes.disable() +}); var sender; // Global variable that holds identity()'s `send` for tileHandler @@ -39,6 +43,7 @@ function identity(send){ } function init(){ + writes.enable(); notifRefresh(); } |