Skip to content

Commit

Permalink
Update mobile.js
Browse files Browse the repository at this point in the history
fix song in mobile
  • Loading branch information
aaravaggarwal3535 authored Nov 23, 2024
1 parent 4a44e3e commit 6a0d777
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ window.onload = function() {
});
};

document.addEventListener('click', function() {
const audio = document.getElementById('background-music');
audio.play().catch(error => {
console.log('Audio playback failed:', error);
});
});
// document.addEventListener('click', function() {
// const audio = document.getElementById('background-music');
// audio.play().catch(error => {
// console.log('Audio playback failed:', error);
// });
// });

0 comments on commit 6a0d777

Please sign in to comment.