Update main.js

This commit is contained in:
UltraLion
2023-05-21 04:05:11 +02:00
committed by GitHub
parent 4a946aee98
commit 738b8dcb2d
+5
View File
@@ -121,6 +121,11 @@ function loadAudio(file) {
}); });
} }
document.querySelector('button').addEventListener('click', function() {
audioCtx.resume().then(() => {
console.log('Playback resumed successfully');
});
});
// Fonction de gestion du bouton Play // Fonction de gestion du bouton Play
function handlePlay() { function handlePlay() {