mirror of
https://github.com/badlogic/heissepreise.git
synced 2024-09-22 00:00:59 +02:00
Sigh #2...
This commit is contained in:
parent
538bf08d0b
commit
e065057f81
|
@ -222,7 +222,7 @@ class Items extends Model {
|
|||
let start = performance.now();
|
||||
const settings = new Settings();
|
||||
const compressedItemsPerStore = [];
|
||||
log(`Items - load using JSON: ${this.jsonData}`);
|
||||
log(`Items - load using JSON: ${this.useJson}`);
|
||||
for (const store of STORE_KEYS) {
|
||||
compressedItemsPerStore.push(
|
||||
new Promise(async (resolve) => {
|
||||
|
|
|
@ -10,7 +10,7 @@ class Settings extends Model {
|
|||
STORE_KEYS.forEach((store) => {
|
||||
this[store] = stores[store].defaultChecked;
|
||||
});
|
||||
this.jsonData = true;
|
||||
this.useJson = true;
|
||||
|
||||
let settings = localStorage.getItem("settings");
|
||||
if (settings) {
|
||||
|
@ -19,8 +19,8 @@ class Settings extends Model {
|
|||
this[prop] = settings[prop];
|
||||
}
|
||||
}
|
||||
this.jsonData = true;
|
||||
log(`Settings - using JSON: ${this.jsonData}`);
|
||||
this.useJson = true;
|
||||
log(`Settings - using JSON: ${this.useJson}`);
|
||||
}
|
||||
|
||||
save() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user