Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolve loadAudioFile error when query string in URL #718

Merged
merged 1 commit into from
Dec 2, 2023

Conversation

IceeAn
Copy link
Contributor

@IceeAn IceeAn commented Dec 2, 2023

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. The issue has been resolved by removing that from the URL before before concatenating "src" link.
@Continuities Continuities merged commit 42dcfef into doublespeakgames:main Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants