This commit is contained in:
Turtle committed 2025-12-28 18:46:33 +01:00
1 parent 2d499af9c0
commit 408e115134
8 files changed
+71 -23

No files matched your search

+12
View File
@@ -468,4 +468,16 @@ async function _showProfileSave(elm) {
updateAllProfiles(userData);
hideOverlay("profile_overlay");
}
async function playSound(src) {
const elm = document.createElement("audio");
elm.innerHTML = `
<source src="${src}" type="audio/mpeg"></source>
`;
try {
await elm.play();
} catch(err) {
console.log("Error playing audio:", err);
}
}