Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In order to prevent JSON parse error on `_get`, I suggest to put the item parsing `JSON.parse(storage.getItem(key));` on a try-catch and set the item value to `null` if the parsing fail. This error occur when the localstorage is used by the cross-storage module (which set the localstorage value into an object like `{"value":null}`) an a native usage of the localstorage (which not necessary set the localstorage value into an object and will break the JSON parsing).
- Loading branch information