From aaa68ad00db7fec38dbce701e91c36ba84633b91 Mon Sep 17 00:00:00 2001 From: Samuel Lippert Date: Tue, 3 Oct 2023 09:24:11 -0500 Subject: [PATCH] Add check --- worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker.js b/worker.js index fd1d5d3..af5f4ff 100644 --- a/worker.js +++ b/worker.js @@ -128,7 +128,7 @@ export class State { await this.update((search && JSON.parse(decodeURIComponent(search.substring(isSearchBasedUpdate ? update.length : 1)))) || json) stateMap() } else { - console.log(json) + if (json) console.log(json) if (stateEvent) this.service?.send(stateEvent, json) else if (json) this.service?.send(json) stateMap()