update zum PC

This commit is contained in:
silas 2018-10-26 13:58:47 +02:00
parent 8a8aab01bf
commit 6db0c508e4
3 changed files with 8 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -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) {

View File

@ -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");