mirror of
https://github.com/copy/v86
synced 2025-10-14 01:54:07 +08:00
fix fetching wasm progress message
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user