Safari eingebaut

This commit is contained in:
silas 2018-11-07 20:21:05 +01:00
parent 6b9b6d1032
commit b7080633e1
7 changed files with 7919 additions and 10 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
cd $(dirname "$0")/..
npm run build 1
npm run build

View File

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

File diff suppressed because one or more lines are too long

View File

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

View File

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

View File

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