Commit 3e68e866 authored by Skye Yu's avatar Skye Yu Committed by Skye Yu

fix: Remove audiu element when download finished.


(cherry picked from commit 808b38c3)
parent 003227e9
...@@ -738,7 +738,7 @@ Jensen.prototype.getFile = async function (filename, length, ondata, onprogress) ...@@ -738,7 +738,7 @@ Jensen.prototype.getFile = async function (filename, length, ondata, onprogress)
function clearEventAndTask() { function clearEventAndTask() {
const audio = document.getElementById('test_audio'); const audio = document.getElementById('test_audio');
audio && audio.pause() && audio.remove(); audio && audio.remove();
wakeLock && wakeLock.release(); wakeLock && wakeLock.release();
console.log('Clear event and task.'); 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