Safari eingebaut
This commit is contained in:
parent
6b9b6d1032
commit
b7080633e1
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd $(dirname "$0")/..
|
||||
npm run build 1
|
||||
npm run build
|
||||
@ -2,5 +2,5 @@
|
||||
|
||||
cd $(dirname "$0")/..
|
||||
|
||||
testcafe firefox test/test.testcafe.js --debug-on-fail
|
||||
#node bin/testcafe.js;
|
||||
#testcafe firefox test/test.testcafe.js --debug-on-fail
|
||||
node bin/testcafe.js;
|
||||
File diff suppressed because one or more lines are too long
7903
public/js/app.js
7903
public/js/app.js
File diff suppressed because one or more lines are too long
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user