aboutsummaryrefslogtreecommitdiff
path: root/webAO/client/saveChatLogHandle.ts
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2023-09-20 13:10:36 +0200
committerstonedDiscord <Tukz@gmx.de>2023-09-20 13:10:36 +0200
commitdda92bd41f4bee11e2cc5de265ce4fbf5221f1ff (patch)
treebcb0f8121955ff815758b30ec4e24a1e6bde4fba /webAO/client/saveChatLogHandle.ts
parent59028dd4046ad0715d80be8d1ed0031f20f05b7a (diff)
autoformat with eslint
Diffstat (limited to 'webAO/client/saveChatLogHandle.ts')
-rw-r--r--webAO/client/saveChatLogHandle.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/webAO/client/saveChatLogHandle.ts b/webAO/client/saveChatLogHandle.ts
index bcc1075..497dd50 100644
--- a/webAO/client/saveChatLogHandle.ts
+++ b/webAO/client/saveChatLogHandle.ts
@@ -14,9 +14,9 @@ export const saveChatlogHandle = async () => {
messages.push(message);
}
const d = new Date();
- let ye = new Intl.DateTimeFormat("en", { year: "numeric" }).format(d);
- let mo = new Intl.DateTimeFormat("en", { month: "short" }).format(d);
- let da = new Intl.DateTimeFormat("en", { day: "2-digit" }).format(d);
+ const ye = new Intl.DateTimeFormat("en", { year: "numeric" }).format(d);
+ const mo = new Intl.DateTimeFormat("en", { month: "short" }).format(d);
+ const da = new Intl.DateTimeFormat("en", { day: "2-digit" }).format(d);
const filename = `chatlog-${da}-${mo}-${ye}`.toLowerCase();
downloadFile(messages.join("\n"), filename);