From 84f6f0109b3e3e4ab6ee667403400ba31402a840 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Sun, 29 Dec 2019 20:03:27 -0500 Subject: integrated queue disabling into jarvis --- examples/jarvis.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); } -- cgit