Compare commits

..

No commits in common. "77cd8fddfde86ed1d5b3f2d662e011234f8ef586" and "3d6ad2475baa53875f100cbb1fd9bbd52374fc67" have entirely different histories.

View File

@ -109,14 +109,7 @@ const handleDownload = (url) => {
// a
const link = document.createElement("a");
link.href = url;
//
let fileName = url.split("/").pop();
//
if (fileName.includes("?") || fileName.includes("_t=")) {
fileName = fileName.split(/[?_]/)[0];
}
link.download = fileName;
link.download = url.split("/").pop(); // URL
link.target = "_blank";
//