mirror of
https://github.com/copy/v86.git
synced 2025-12-31 04:23:15 +00:00
fix fetching wasm progress message
This commit is contained in:
parent
ac5e657e5a
commit
9735a0eed8
1 changed files with 4 additions and 2 deletions
|
|
@ -68,9 +68,11 @@ function show_progress(e)
|
|||
const el = $("loading");
|
||||
el.style.display = "block";
|
||||
|
||||
if(e.file_name.endsWith(".wasm"))
|
||||
const file_name = e.file_name.split("?", 1)[0];
|
||||
|
||||
if(file_name.endsWith(".wasm"))
|
||||
{
|
||||
const parts = e.file_name.split("/");
|
||||
const parts = file_name.split("/");
|
||||
el.textContent = "Fetching " + parts[parts.length - 1] + " ...";
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue