From 7466a91defac93cf442179b301c2ec366bbe652b Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Sun, 13 Sep 2020 22:57:48 +0200 Subject: [PATCH] fix type checking --- public/trivabble.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/trivabble.js b/public/trivabble.js index ec9f352..ce3fbfc 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -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"; -- 2.30.2