aboutsummaryrefslogtreecommitdiff
path: root/webAO/services/downloadFile.ts
diff options
context:
space:
mode:
authorstonedDiscord <stonedDiscord@users.noreply.github.com>2024-11-20 13:31:50 +0000
committerGitHub Action <actions@github.com>2024-11-20 13:31:50 +0000
commit6684f3fce6e90fd0574d7bab63b629554ab03ef6 (patch)
treeb2a62247d17e23a77af57aea355ba621666817c2 /webAO/services/downloadFile.ts
parent95a2d1361d84c61b454ebe506e6963b93f6d8dee (diff)
Prettified Code!
Diffstat (limited to 'webAO/services/downloadFile.ts')
-rw-r--r--webAO/services/downloadFile.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/webAO/services/downloadFile.ts b/webAO/services/downloadFile.ts
index d272249..5b2f292 100644
--- a/webAO/services/downloadFile.ts
+++ b/webAO/services/downloadFile.ts
@@ -1,8 +1,8 @@
const downloadFile = (content: string, filename: string) => {
- const a = document.createElement('a');
- const file = new Blob([content], { type: 'text' });
- a.href = URL.createObjectURL(file);
- a.download = filename;
- a.click();
-}
-export default downloadFile
+ const a = document.createElement("a");
+ const file = new Blob([content], { type: "text" });
+ a.href = URL.createObjectURL(file);
+ a.download = filename;
+ a.click();
+};
+export default downloadFile;