mirror of
https://github.com/fly-apps/live_beats.git
synced 2024-11-22 08:01:00 +00:00
Only show enable audio modal if not allowed
This commit is contained in:
parent
17db535839
commit
b3033d0a94
1 changed files with 5 additions and 1 deletions
|
@ -64,7 +64,11 @@ Hooks.AudioPlayer = {
|
||||||
this.player.play().then(() => {
|
this.player.play().then(() => {
|
||||||
if(sync){ this.player.currentTime = nowSeconds() - this.playbackBeganAt }
|
if(sync){ this.player.currentTime = nowSeconds() - this.playbackBeganAt }
|
||||||
this.progressTimer = setInterval(() => this.updateProgress(), 100)
|
this.progressTimer = setInterval(() => this.updateProgress(), 100)
|
||||||
}, error => execJS("#enable-audio", "data-js-show"))
|
}, error => {
|
||||||
|
if(error.name === "NotAllowedError"){
|
||||||
|
execJS("#enable-audio", "data-js-show")
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
pause(){
|
pause(){
|
||||||
|
|
Loading…
Reference in a new issue