kennethlynne / ndcvideos.com

The official NDC conference video archive front-end
www.ndcvideos.com
30 stars 7 forks source link

Fall back to using memory as storage if localStorage is not available #179

Closed kennethlynne closed 9 years ago

kennethlynne commented 10 years ago

On some safari devices the browser tells the app that localStorage is available, but throws an exception when you actually try to use it. try, catch and fall back to use memory to allow users to log in without persisting token.

arealmaas commented 10 years ago

But doesn't $localStorage have a fallback on sessionstorage?

kennethlynne commented 9 years ago

Fuck this shit.