This commit is contained in:
parent
c8afc4f7cb
commit
c8e0d87d1f
|
@ -5,7 +5,7 @@
|
|||
"dependencies": {
|
||||
"@fortawesome/fontawesome-free": "^5.15.4",
|
||||
"@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/react": "^11.1.0",
|
||||
"@testing-library/user-event": "^12.1.10",
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
export default function playAudio(a: string) {
|
||||
if (!a) return;
|
||||
console.log(`/audio/${a}.mp3`);
|
||||
let audio = new Audio(`/audio/${a}.mp3`);
|
||||
audio.addEventListener("ended", () => {
|
||||
audio.remove();
|
||||
|
|
Loading…
Reference in New Issue