basic file sharing

This commit is contained in:
2025-08-29 15:32:23 +02:00
parent c8b52a5b3b
commit 284d805590
84 changed files with 3969 additions and 375 deletions

View File

@@ -75,3 +75,14 @@ export async function pasteFile(
return success;
}
export function downloadFile(fileName: string, href: string) {
const anchor = document.createElement('a');
anchor.href = href;
anchor.download = fileName;
anchor.rel = 'noopener';
anchor.target = '_blank';
anchor.click();
}