update audio storage path
This commit is contained in:
parent
77018ef252
commit
1fefb4ca7e
|
@ -1,6 +1,6 @@
|
||||||
export default function playStorageAudio(ts: number, callback: () => void) {
|
export default function playStorageAudio(ts: number, callback: () => void) {
|
||||||
if (!ts) return;
|
if (!ts) return;
|
||||||
let audio = new Audio(`https://storage.lingdocs.com/${ts}.mp3`);
|
let audio = new Audio(`https://storage.lingdocs.com/audio/${ts}.mp3`);
|
||||||
audio.addEventListener("ended", () => {
|
audio.addEventListener("ended", () => {
|
||||||
callback();
|
callback();
|
||||||
audio.remove();
|
audio.remove();
|
||||||
|
|
Loading…
Reference in New Issue