This commit is contained in:
lingdocs 2022-04-12 16:48:55 +05:00
parent c8afc4f7cb
commit c8e0d87d1f
2 changed files with 1 additions and 2 deletions

View File

@ -5,7 +5,7 @@
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-free": "^5.15.4", "@fortawesome/fontawesome-free": "^5.15.4",
"@lingdocs/lingdocs-main": "^0.2.0", "@lingdocs/lingdocs-main": "^0.2.0",
"@lingdocs/pashto-inflector": "^1.9.3", "@lingdocs/pashto-inflector": "^1.9.4",
"@testing-library/jest-dom": "^5.11.4", "@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0", "@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10", "@testing-library/user-event": "^12.1.10",

View File

@ -1,6 +1,5 @@
export default function playAudio(a: string) { export default function playAudio(a: string) {
if (!a) return; if (!a) return;
console.log(`/audio/${a}.mp3`);
let audio = new Audio(`/audio/${a}.mp3`); let audio = new Audio(`/audio/${a}.mp3`);
audio.addEventListener("ended", () => { audio.addEventListener("ended", () => {
audio.remove(); audio.remove();