diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/jarvis.js | 8 |
1 files changed, 4 insertions, 4 deletions
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()); } |