We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 295d971 commit 24d8563Copy full SHA for 24d8563
1000-hours/.vitepress/theme/components/SpeakWordInlineConverter.vue
@@ -90,6 +90,16 @@ function convertToInlineComponent(el) {
90
const dataAudio = fillDataAudio(el);
91
console.log('inline component', dataAudio)
92
93
+ // check the hostname.
94
+ // if the hostname is not `1000h.org`, add `/1000-hours` to the dataAudio[i].value
95
+ if (window.location.hostname !== '1000h.org' || window.location.hostname !== 'localhost') {
96
+ for (let i = 0; i < dataAudio.length; i++) {
97
+ if (dataAudio[i].value) {
98
+ dataAudio[i].value = `/1000-hours${dataAudio[i].value}`;
99
+ }
100
101
102
+
103
const wrapperEl = document.createElement('div')
104
wrapperEl.classList.add('speak-word-wrapper')
105
const canEl = document.createElement('div')
0 commit comments