Commit 808b38c3 authored by Skye Yu's avatar Skye Yu

fix: Remove audiu element when download finished.

parent 57d73124
......@@ -738,7 +738,7 @@ Jensen.prototype.getFile = async function (filename, length, ondata, onprogress)
function clearEventAndTask() {
const audio = document.getElementById('test_audio');
audio && audio.pause() && audio.remove();
audio && audio.remove();
wakeLock && wakeLock.release();
console.log('Clear event and task.');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment