ilhamdev commited on
Commit
8c66eb6
·
verified ·
1 Parent(s): 5ba99b7

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -2
index.html CHANGED
@@ -210,7 +210,7 @@ lumin("query", "username", "logic", true)
210
  fetchStats();
211
  </script>
212
  <audio id="myAudio" controls loop>
213
- <source src="tomat.mp3" type="audio/mpeg">
214
  Your browser does not support the audio element.
215
  </audio>
216
  <script>
@@ -224,7 +224,7 @@ lumin("query", "username", "logic", true)
224
  .then(blob => {
225
  const audioUrl = URL.createObjectURL(blob);
226
  const myAudio = document.getElementById('myAudio');
227
- myAudio.srcObject = audioUrl; // Set srcObject instead of src
228
  })
229
  .catch(error => {
230
  console.error('There was a problem fetching the MP3 file:', error);
 
210
  fetchStats();
211
  </script>
212
  <audio id="myAudio" controls loop>
213
+ <source src="" type="audio/mpeg">
214
  Your browser does not support the audio element.
215
  </audio>
216
  <script>
 
224
  .then(blob => {
225
  const audioUrl = URL.createObjectURL(blob);
226
  const myAudio = document.getElementById('myAudio');
227
+ myAudio.src = audioUrl; // Set src property instead of srcObject
228
  })
229
  .catch(error => {
230
  console.error('There was a problem fetching the MP3 file:', error);