fix type checking
This commit is contained in:
parent
6ebcc0284d
commit
7466a91def
|
@ -73,7 +73,7 @@
|
|||
|
||||
/* get type from localStorage if no default is set */
|
||||
if (typeof type === "undefined") {
|
||||
if (Object.prototype.hasOwnProperty.call(localStorage, key + "_key")) {
|
||||
if (Object.prototype.hasOwnProperty.call(localStorage, key + "_type")) {
|
||||
type = localStorage.getItem(key + "_type");
|
||||
} else {
|
||||
type = "string";
|
||||
|
|
Loading…
Reference in New Issue