فهرست منبع

currentLocation.musicInfo

zhouenguang 3 سال پیش
والد
کامیت
d975131cb5
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      web/public/static/js/main_2020_show.js

+ 1 - 1
web/public/static/js/main_2020_show.js

@@ -23613,7 +23613,7 @@ window.Modernizr = function(n, e, t) {
                 var rotTime
                 if(currentLocation.rotTime == void 0 || currentLocation.rotTime == ''){
                     var restChildCount = currentLocation.heroLocations ? (currentLocation.heroLocations.length-this.director.currentItem[1]-1) : 0
-                    var hasMusic = currentLocation && currentLocation.musicInfo.music
+                    var hasMusic = currentLocation && currentLocation.musicInfo && currentLocation.musicInfo.music
                     if(hasMusic){
                         var audioObj = SoundManager.list.find(e=>e.name == 'tour') 
                         var current = audioObj.audio.currentTime * 1e3 // || 0  //g_tourAudio ? 1e3 * g_tourAudio.currentTime : 0