Skip to content

Commit

Permalink
fix: correct audio path logic for non-production environments
Browse files Browse the repository at this point in the history
  • Loading branch information
lyricat committed Mar 4, 2025
1 parent 24d8563 commit 827f953
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function convertToInlineComponent(el) {
// check the hostname.
// if the hostname is not `1000h.org`, add `/1000-hours` to the dataAudio[i].value
if (window.location.hostname !== '1000h.org' || window.location.hostname !== 'localhost') {
if (window.location.hostname !== '1000h.org' && window.location.hostname !== 'localhost') {
for (let i = 0; i < dataAudio.length; i++) {
if (dataAudio[i].value) {
dataAudio[i].value = `/1000-hours${dataAudio[i].value}`;
Expand Down

0 comments on commit 827f953

Please sign in to comment.