g3.1
This commit is contained in:
1 parent
2d499af9c0
commit
408e115134
8 files changed
+71
-23
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user