Skip to content
This repository was archived by the owner on Jul 3, 2024. It is now read-only.

more robust feature detect #1

Closed
paulirish opened this issue Oct 5, 2011 · 1 comment
Closed

more robust feature detect #1

paulirish opened this issue Oct 5, 2011 · 1 comment
Assignees

Comments

@paulirish
Copy link

if cookies are disabled this code will throw an error as it stands.
a try/catch mostly fixes things, but you can read the details in here
https://github.com/Modernizr/Modernizr/blob/d4bfec66/modernizr.js#L698-722

@ghost ghost assigned aarongustafson Nov 5, 2011
@aarongustafson
Copy link
Member

Thanks for the heads-up Paul. I think I took care of this already (only just saw this issue). The code I used seems to be working fine, but I’ll test a little more to see which works better: https://github.com/easy-designs/LocalStorageDB.js/blob/master/src/LocalStorageDB.js#L108-117

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants