fix type checking
authorLaurent Mazet <mazet@softndesign.org>
Sun, 13 Sep 2020 20:57:48 +0000 (22:57 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Sun, 13 Sep 2020 20:57:48 +0000 (22:57 +0200)
public/trivabble.js

index ec9f35271c0770fdbbd5570da945ff2d5104fe7a..ce3fbfccc91c954c6ef7f0e1d6fcefac5e2edb8b 100644 (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";