From: Laurent Mazet Date: Sun, 13 Sep 2020 20:57:48 +0000 (+0200) Subject: fix type checking X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=7466a91defac93cf442179b301c2ec366bbe652b;p=trivabble.git fix type checking --- 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";