Commit f373e0f1 authored by martin hou's avatar martin hou

chore: change download to transfer

parent 7f7d802c
......@@ -813,7 +813,7 @@ Jensen.prototype.getFile = async function (filename, length, ondata, onprogress)
Logger.info('jensen', 'getFile length', `${length} ${flen}`);
if (flen >= length) {
document.removeEventListener('visibilitychange', visibilitychange);
Logger.info('jensen', 'getFile', 'file download finish.');
Logger.info('jensen', 'getFile', 'file transfer finish.');
clearEventAndTask();
// return OK indicates all file blocks received
return 'OK';
......@@ -821,7 +821,7 @@ Jensen.prototype.getFile = async function (filename, length, ondata, onprogress)
} else {
document.removeEventListener('visibilitychange', visibilitychange);
clearEventAndTask();
Logger.info('jensen', 'getFile', 'file download fail.');
Logger.info('jensen', 'getFile', 'file transfer fail.');
ondata('fail');
return 'fail';
}
......
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