]> git.r.bdr.sh - rbdr/junction/blame - extension/tada.js
Fix typo
[rbdr/junction] / extension / tada.js
CommitLineData
06b7617a
RBR
1export 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}