Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error trying to get an item from storage #3

Closed
jherax opened this issue Dec 12, 2016 · 0 comments
Closed

Error trying to get an item from storage #3

jherax opened this issue Dec 12, 2016 · 0 comments

Comments

@jherax
Copy link
Owner

jherax commented Dec 12, 2016

When I try to get an existent cookie that has plain text as value, I get the following error:
SyntaxError: Unexpected token l in JSON

const cookieStore = new WebStorage('cookieStorage');

let address = cookieStore.getItem('userAddress')
// throws error
@jherax jherax closed this as completed in 8f057e7 Dec 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant