]> git.r.bdr.sh - rbdr/junction/blame_incremental - extension/tada.js
Update all versions
[rbdr/junction] / extension / tada.js
... / ...
CommitLineData
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}