]> git.r.bdr.sh - rbdr/junction/blob - extension/tada.js
Properly allow multiple
[rbdr/junction] / extension / tada.js
1 export function initializeTada(source) {
2 const audioElement = document.createElement("audio");
3 audioElement.setAttribute("class", "junction-tada");
4 audioElement.src = source;
5 document.querySelector("body").appendChild(audioElement);
6
7 return () => audioElement.play();
8 }