Sigh #2...

This commit is contained in:
Mario Zechner 2023-06-18 14:53:56 +02:00
parent 538bf08d0b
commit e065057f81
2 changed files with 4 additions and 4 deletions

View File

@ -222,7 +222,7 @@ class Items extends Model {
let start = performance.now(); let start = performance.now();
const settings = new Settings(); const settings = new Settings();
const compressedItemsPerStore = []; const compressedItemsPerStore = [];
log(`Items - load using JSON: ${this.jsonData}`); log(`Items - load using JSON: ${this.useJson}`);
for (const store of STORE_KEYS) { for (const store of STORE_KEYS) {
compressedItemsPerStore.push( compressedItemsPerStore.push(
new Promise(async (resolve) => { new Promise(async (resolve) => {

View File

@ -10,7 +10,7 @@ class Settings extends Model {
STORE_KEYS.forEach((store) => { STORE_KEYS.forEach((store) => {
this[store] = stores[store].defaultChecked; this[store] = stores[store].defaultChecked;
}); });
this.jsonData = true; this.useJson = true;
let settings = localStorage.getItem("settings"); let settings = localStorage.getItem("settings");
if (settings) { if (settings) {
@ -19,8 +19,8 @@ class Settings extends Model {
this[prop] = settings[prop]; this[prop] = settings[prop];
} }
} }
this.jsonData = true; this.useJson = true;
log(`Settings - using JSON: ${this.jsonData}`); log(`Settings - using JSON: ${this.useJson}`);
} }
save() { save() {