Commit 26a5a7ab authored by Skye Yu's avatar Skye Yu

Merge branch 'cherry-pick-808b38c3' into 'dev'

fix: Remove audiu element when download finished.

See merge request !6
parents 003227e9 3e68e866
...@@ -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