Fix game.playAudio.

This commit is contained in:
Tipx-L 2023-09-03 18:20:09 -07:00
parent a46831a898
commit 40f91f439c
1 changed files with 1 additions and 1 deletions

View File

@ -32638,7 +32638,7 @@
var audio=document.createElement('audio');
audio.autoplay=true;
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;
}
else{