-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
IE LocalStorage.setItem bug with compression #271
Comments
I'm having the same issue on Edge. Since I had to fix it ASAP (it was blocking my checkout page for some users) I added the following patch right after including store.js:
Its not a good solution but its better than nothing for now.. |
Excellent, thank you for the patch! I made some adjustments for my use case scenario to hook the func and attempt to use it preferentially
|
This is probably a little old but just found out from LZString you can do the following (code from http://pieroxy.net/blog/pages/lz-string/guide.html): var string = "This is my compression test."; |
Using store.everything.min.js 2.0.12, Edge (IE11 also) throw an exception "SCRIPT87: Invalid argument" with the following code:
crash happens line 22 of localStorage.js
It seems that there's a char in the compressed string that IE doesn't like too much. No problem with Chrome or Firefox.
jsfiddle
The text was updated successfully, but these errors were encountered: