Skip to content

Commit

Permalink
Add check
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-lippert committed Oct 3, 2023
1 parent e9e12a0 commit aaa68ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit aaa68ad

Please sign in to comment.