fix fetching wasm progress message

This commit is contained in:
Fabian
2025-09-20 15:06:02 -03:00
parent ac5e657e5a
commit 9735a0eed8

View File

@@ -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;
}