From 12c68f4e7f5ad3fe940044c563f3638370ed40e9 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Mon, 20 Jan 2020 22:33:53 -0500 Subject: minor jarvis changes --- examples/jarvis.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/jarvis.js b/examples/jarvis.js index 9f4e529..04c12db 100644 --- a/examples/jarvis.js +++ b/examples/jarvis.js @@ -49,9 +49,9 @@ function tileHandler(send, source, tiles){ } //// "userspace" functions for responses, like to tileUpdates -var command = 'jarvis' -var sig = 'feynmansfedora' -var notifsrc = '\ +const command = 'jarvis' +const sig = 'feynmansfedora' +const notifsrc = '\ \n\ For a node.js YWOT api: \n\ & git.hrhr.dev/ywot-clean \n\ @@ -78,7 +78,7 @@ function notifRefresh(){ let diff = newnotif.copy(); if (typeof notif !== 'undefined') diff.comb(notif, comb.sub); notif = newnotif; - claims.unclaim(notifClaim); + if (notifClaim) claims.unclaim(notifClaim); notifClaim = claims.claim(newnotif, protectArea); return (diff.towrite()); } -- cgit