Comments (2)
Hi Jay,
I think the localStorage implementation is fairly new in FF (3.5)... this looks like a bug in Firefox.
A simple try/catch will resolve this, but Firefox is the only browser that doesn't respect this appropriately. Let me stew about a good way to resolve it.
Hi Jay,
From my understanding, the implementation of IE8 and Safari is appropriate. LocalStorage should work with cookies disabled. There may currently be no way to handle fine-grained localStorage vs cookies disabling, so some browsers currently disable both localStorage and cookies together. That's only speculation.
Unfortunately, because of the inconsistently in the implementation between Chrome and Firefox, the simple try/catch won't resolve this issue. I will work out another solution that makes sense shortly.
Thanks for using PersistJS,
Jeremy
from persist-js.
Jeremy,
any news on this issue? The problem is that many people have disabled cookies and so loading the lib will fail, even with storage type cookies removed.
Thanks
Michael
from persist-js.
Related Issues (20)
- Add .md extension
- Force backend
- Order by which back ends are used? HOT 10
- #<HTMLObjectElement> has no method 'get' HOT 6
- Urgent
- Accessing the data store HOT 1
- Suggestion: Chopping up values to fit Persist.size
- Register a Bower package
- Saving association fails with many to many oracle associations
- User for...in instead of for loop in iterate function
- Listing on bower? HOT 2
- remove of an item returns this.getitem is not a function
- CDN
- Why license hasn't been included in js files? HOT 1
- firefox prevented the outdated plugin adobe flash from using in your website HOT 6
- Persist.type localStorage no longer persists across windows / tabs
- Cookie's domain is not consistent
- Clear all data from storage HOT 1
- Safari private browser mode HOT 1
- How can I use persist-js on react HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from persist-js.