Commit 02865af0 authored by Skye Yu's avatar Skye Yu

test:

parent 94c850c0
......@@ -697,6 +697,8 @@ Jensen.prototype.getFile = async function (filename, length, ondata, onprogress)
if (typeof length != 'number') throw new Error('parameter `length` required');
if (length <= 0) throw new Error('parameter `length` must greater than zero');
Logger.info('jensen', 'getFile',`file download start. filename: ${filename}, length: ${length} `);
let fname = [];
for (let i = 0; i < filename.length; i++) fname.push(filename.charCodeAt(i));
......@@ -726,6 +728,8 @@ Jensen.prototype.getFile = async function (filename, length, ondata, onprogress)
audio && audio.pause() && audio.remove();
}
visibilitychange();
document.addEventListener('visibilitychange', visibilitychange);
let flen = 0;
......
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