When the URL contains a query string (e.g., "?lang=zh_cn") or is accessed with index.html, loadAudioFile fails to load the audio files (#694 ). The issue has been resolved by removing that from the URL before concatenating src link.
It seems that this project supports IE9 and above, so we use the method of concatenating to construct the origin instead of relying on window.location.origin.
When the URL contains a query string (e.g., "?lang=zh_cn") or is accessed with index.html, loadAudioFile fails to load the audio files (#694 ). The issue has been resolved by removing that from the URL before concatenating
src
link. It seems that this project supports IE9 and above, so we use the method of concatenating to construct the origin instead of relying onwindow.location.origin
.