update zum PC
This commit is contained in:
parent
8a8aab01bf
commit
6db0c508e4
File diff suppressed because one or more lines are too long
@ -3511,7 +3511,7 @@ class MyDb {
|
||||
|
||||
let objects = [];
|
||||
let numberResults = 0;
|
||||
console.log("indexrequest", indexRequest.openCursor());
|
||||
// console.log("indexrequest", indexRequest.openCursor());
|
||||
let request = indexRequest.openCursor(value, direction);
|
||||
console.log("request", request);
|
||||
request["onsuccess"]= function (e) {
|
||||
|
||||
@ -40,7 +40,11 @@ export class WordRotatorDb extends MyDb {
|
||||
|
||||
async loadNextLevel(rendererTypes) {
|
||||
console.log("loadNextLevel 1", IDBKeyRange.lowerBound(0));
|
||||
const levels = await this.loadMany("difficulty", IDBKeyRange.lowerBound(0), WordRotatorDb.OBJECT_STORE.LEVEL);
|
||||
let levels = await this.loadAll(WordRotatorDb.OBJECT_STORE.LEVEL);
|
||||
levels = levels.sort((a,b) => {
|
||||
return (a["difficulty"] - b["difficulty"]);
|
||||
});
|
||||
// const levels = await this.loadMany("difficulty", IDBKeyRange.lowerBound(0), WordRotatorDb.OBJECT_STORE.LEVEL);
|
||||
// const levels = await this.loadMany("difficulty", null, WordRotatorDb.OBJECT_STORE.LEVEL);
|
||||
console.log("loadNextLevel 2");
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user