]>
git.r.bdr.sh - rbdr/junction/blob - extension/tada.js
5898aeaece28a31abfd6f4bf5cc5554fb5aefe3c
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
);
7 return () => audioElement
.play();