fix: unlock iOS audio on title tap via Music.play() before SFX.boot()
This commit is contained in:
1 parent
94e1b59389
commit
d3abe9bce7
1 file changed
+2
-2
@@ -1150,11 +1150,11 @@ class Game {
|
|||||||
|
|
||||||
showTitle() {
|
showTitle() {
|
||||||
this.show('title');
|
this.show('title');
|
||||||
SFX.boot();
|
|
||||||
this._showController(true);
|
this._showController(true);
|
||||||
const go = () => {
|
const go = () => {
|
||||||
document.getElementById('screen-title').removeEventListener('click', go);
|
document.getElementById('screen-title').removeEventListener('click', go);
|
||||||
Music.unblock();
|
Music.play();
|
||||||
|
SFX.boot();
|
||||||
this.showContinueOrName();
|
this.showContinueOrName();
|
||||||
};
|
};
|
||||||
document.getElementById('screen-title').addEventListener('click', go);
|
document.getElementById('screen-title').addEventListener('click', go);
|
||||||
|
|||||||
Reference in new issue
Block a user