From 827f9533ae0ade2aa4e2c8f61cdd83eada39f60b Mon Sep 17 00:00:00 2001 From: Lyric <5h3ll3x@gmail.com> Date: Tue, 4 Mar 2025 23:28:14 +0900 Subject: [PATCH] fix: correct audio path logic for non-production environments --- .../.vitepress/theme/components/SpeakWordInlineConverter.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1000-hours/.vitepress/theme/components/SpeakWordInlineConverter.vue b/1000-hours/.vitepress/theme/components/SpeakWordInlineConverter.vue index 897492ef..541ac2ae 100644 --- a/1000-hours/.vitepress/theme/components/SpeakWordInlineConverter.vue +++ b/1000-hours/.vitepress/theme/components/SpeakWordInlineConverter.vue @@ -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}`;