Safari eingebaut
This commit is contained in:
parent
6b9b6d1032
commit
b7080633e1
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
cd $(dirname "$0")/..
|
cd $(dirname "$0")/..
|
||||||
npm run build 1
|
npm run build
|
||||||
@ -2,5 +2,5 @@
|
|||||||
|
|
||||||
cd $(dirname "$0")/..
|
cd $(dirname "$0")/..
|
||||||
|
|
||||||
testcafe firefox test/test.testcafe.js --debug-on-fail
|
#testcafe firefox test/test.testcafe.js --debug-on-fail
|
||||||
#node bin/testcafe.js;
|
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() {
|
constructor() {
|
||||||
this.channels = {};
|
this.channels = {};
|
||||||
|
console.log("SoundManager construction");
|
||||||
|
if ('AudioContext' in window){
|
||||||
|
console.log("SoundManager construction 2");
|
||||||
this.context = new AudioContext();
|
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 () {
|
this.context.onstatechange = function () {
|
||||||
console.log("stateChange from context", arguments);
|
console.log("stateChange from context", arguments);
|
||||||
};
|
};
|
||||||
|
|||||||
@ -3415,7 +3415,6 @@ class MyDb {
|
|||||||
else {
|
else {
|
||||||
setTimeout(testSqlLiteResolve, 200);
|
setTimeout(testSqlLiteResolve, 200);
|
||||||
}
|
}
|
||||||
console.log("t");
|
|
||||||
}
|
}
|
||||||
testSqlLiteResolve();
|
testSqlLiteResolve();
|
||||||
});
|
});
|
||||||
@ -3423,9 +3422,7 @@ class MyDb {
|
|||||||
else {
|
else {
|
||||||
indexedDB = Promise.resolve(window["myIndexedDB"] || window["indexedDB"] || window["mozIndexedDB"]|| window["webkitIndexedDB"]|| window["msIndexedDB"] || window["shimIndexedDB"]);
|
indexedDB = Promise.resolve(window["myIndexedDB"] || window["indexedDB"] || window["mozIndexedDB"]|| window["webkitIndexedDB"]|| window["msIndexedDB"] || window["shimIndexedDB"]);
|
||||||
}
|
}
|
||||||
console.log("indexeddb 1");
|
|
||||||
this.indexeddb = (await indexedDB);
|
this.indexeddb = (await indexedDB);
|
||||||
console.log("indexeddb 2");
|
|
||||||
this._conn = this.indexeddb.open(dbName, version);
|
this._conn = this.indexeddb.open(dbName, version);
|
||||||
|
|
||||||
let myDB = this;
|
let myDB = this;
|
||||||
|
|||||||
@ -254,7 +254,7 @@ class LevelManager extends StandardManager
|
|||||||
array_splice($levelsToGenerate, $currentIndex, 1);
|
array_splice($levelsToGenerate, $currentIndex, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
} while (count($levelsToGenerate) > 0 && $levelGenerated < 500);
|
} while (count($levelsToGenerate) > 0 && $levelGenerated < 100);
|
||||||
|
|
||||||
$this->emFlush();
|
$this->emFlush();
|
||||||
$this->wordManager->emFlush();
|
$this->wordManager->emFlush();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user