-
Notifications
You must be signed in to change notification settings - Fork 90
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
how to get value from local storage when the key is start with uppercase #42
Comments
Hi, the library formats de generated key by concatenating a prefix and the lowerized raw key. All accesses to the property use this step. Are you sure that the value's set when you're trying to access it. |
Hi, the "Authorization" that exist in the local storage not created via ng2-webstorage. Thanks |
OK! understood. Currently you can remove the prefix and the separator but the raw key will always be formatted. |
Thanks for the fast response. |
Hi! The last version offer a new option 'caseSensitive' allowing to disable the key formatting. |
Thanks it'sgreat news :) |
First thanks for this good library.
I have a case that the key in the local storage is start with uppercase.
in my case is "Authorization" with capital "A"
and when I use the retrieve("Authorization") it return null.
I debug and found that the library change the key to lowercase.
is there a way to use capital to get value?
thanks
The text was updated successfully, but these errors were encountered: