anvilresearch / connect-js

Anvil Connect JavaScript client for web browsers
http://anvil.io
MIT License
15 stars 11 forks source link

Deserialization regular expression parses 'lonely' cookies #3

Closed bauglir closed 9 years ago

bauglir commented 9 years ago

I noticed my sessions weren't being deserialized on page refreshes. Looking into this it looks like this is caused by the regular expression failing when anvil.connect is the only available cookie (and I'm guessing the same holds if it is the first cookie in the store). For me this altered regular expression fixes the issue.