1
0
mirror of https://github.com/omrips/viewstl synced 2026-01-02 20:29:58 +03:00

Add files via upload

This commit is contained in:
omrips
2021-02-14 12:15:39 +02:00
committed by GitHub
parent 6fbc2cc36a
commit c7f11e4a2f

View File

@@ -84,14 +84,14 @@ function send_error(s)
function download_from_local(filename)
{
if (fetch)
{
download_from_local_fetch(filename);
}
else
{
//if ((fetch)&&(async_supported()))
//{
// download_from_local_fetch(filename);
//}
//else
//{
download_from_local_xhr(filename);
}
//}
}
function download_from_local_xhr(filename)
@@ -128,6 +128,7 @@ function download_from_local_xhr(filename)
xhr.send(null);
}
/*
async function download_from_local_fetch(filename)
{
const response = await fetch(filename);
@@ -149,6 +150,7 @@ async function download_from_local_fetch(filename)
}
after_file_load(chunksAll.buffer)
}
*/
function after_file_load(s)
{