frontend/app/utils/Download.ts
2026-02-05 19:42:00 +01:00

12 lines
302 B
TypeScript

export class Download
{
static download(url: string)
{
const a = document.createElement("a");
a.style.display = "none";
a.href = "http://localhost:8080/maven2/" + url;
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
}
}