arj03 / ssb-browser-core

ssb-server in a browser
Other
50 stars 8 forks source link

Fix error when clock is undefined #31

Closed KyleMaas closed 3 years ago

KyleMaas commented 3 years ago

Turns out if you haven't synced with anything yet, clock comes in as undefined. This errors out JSON.parse with an error about an unknown token "u". This should fix that.

KyleMaas commented 3 years ago

Just tested this. I no longer get that error. So it looks like this does work.

arj03 commented 3 years ago

thanks :)