fix: correct audio path logic for non-production environments
This commit is contained in:
@@ -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}`;
|
||||
|
||||
Reference in New Issue
Block a user