fix type checking

This commit is contained in:
Laurent Mazet 2020-09-13 22:57:48 +02:00
parent 6ebcc0284d
commit 7466a91def
1 changed files with 1 additions and 1 deletions

View File

@ -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";