Safari eingebaut
This commit is contained in:
@@ -440,7 +440,18 @@ class SoundManager {
|
||||
|
||||
constructor() {
|
||||
this.channels = {};
|
||||
this.context = new AudioContext();
|
||||
console.log("SoundManager construction");
|
||||
if ('AudioContext' in window){
|
||||
console.log("SoundManager construction 2");
|
||||
this.context = new AudioContext();
|
||||
}
|
||||
else if ('webkitAudioContext' in window){
|
||||
console.log("SoundManager construction 3");
|
||||
this.context = new webkitAudioContext();
|
||||
}
|
||||
else {
|
||||
throw new Error("No audio context found!");
|
||||
}
|
||||
this.context.onstatechange = function () {
|
||||
console.log("stateChange from context", arguments);
|
||||
};
|
||||
|
||||
@@ -3415,7 +3415,6 @@ class MyDb {
|
||||
else {
|
||||
setTimeout(testSqlLiteResolve, 200);
|
||||
}
|
||||
console.log("t");
|
||||
}
|
||||
testSqlLiteResolve();
|
||||
});
|
||||
@@ -3423,9 +3422,7 @@ class MyDb {
|
||||
else {
|
||||
indexedDB = Promise.resolve(window["myIndexedDB"] || window["indexedDB"] || window["mozIndexedDB"]|| window["webkitIndexedDB"]|| window["msIndexedDB"] || window["shimIndexedDB"]);
|
||||
}
|
||||
console.log("indexeddb 1");
|
||||
this.indexeddb = (await indexedDB);
|
||||
console.log("indexeddb 2");
|
||||
this._conn = this.indexeddb.open(dbName, version);
|
||||
|
||||
let myDB = this;
|
||||
|
||||
@@ -254,7 +254,7 @@ class LevelManager extends StandardManager
|
||||
array_splice($levelsToGenerate, $currentIndex, 1);
|
||||
}
|
||||
|
||||
} while (count($levelsToGenerate) > 0 && $levelGenerated < 500);
|
||||
} while (count($levelsToGenerate) > 0 && $levelGenerated < 100);
|
||||
|
||||
$this->emFlush();
|
||||
$this->wordManager->emFlush();
|
||||
|
||||
Reference in New Issue
Block a user