frontend/app/utils/Download.ts
2026-04-12 16:34:07 +02:00

12 lines
285 B
TypeScript

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