Fix game.playAudio.
This commit is contained in:
parent
a46831a898
commit
40f91f439c
|
@ -32638,7 +32638,7 @@
|
||||||
var audio=document.createElement('audio');
|
var audio=document.createElement('audio');
|
||||||
audio.autoplay=true;
|
audio.autoplay=true;
|
||||||
audio.volume=lib.config.volumn_audio/8;
|
audio.volume=lib.config.volumn_audio/8;
|
||||||
if(str.indexOf('.mp3')!=-1||str.indexOf('.ogg')!=-1){
|
if(str.split('/').pop().split('.').length>1){
|
||||||
audio.src=lib.assetURL+'audio'+str;
|
audio.src=lib.assetURL+'audio'+str;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|
Loading…
Reference in New Issue