fix(nodejs): correct file name for conversion instead of changing download link

This commit is contained in:
sshakndr
2025-03-18 13:01:01 +07:00
parent 1a73be6a12
commit 1db4e22007
3 changed files with 4 additions and 4 deletions

View File

@ -460,8 +460,7 @@ if (typeof jQuery != "undefined") {
jq("#beginViewConverted").removeClass("disable");
jq("#downloadConverted").attr("data","fromStorage");
} else {
let newFilename = fileName.split('.').slice(0,-1).join('.')
jq("#hiddenFileName").attr("data",response.filename.split("&filename=download").join(`&filename=${newFilename}`));
jq("#hiddenFileName").attr("data",response.filename);
jq("#downloadConverted").attr("data","fromConverter");
}
jq("td[name='convertingTypeButton']").removeClass("disable orange");