From dfd20a3a2285e80abe2a22ec2b2c87bf659121d6 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Sun, 16 Apr 2023 17:50:05 -0700 Subject: [PATCH] capitalize string --- packages/client/src/components/MkInstanceTicker.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/client/src/components/MkInstanceTicker.vue b/packages/client/src/components/MkInstanceTicker.vue index 21de324e5e..f067f338b4 100644 --- a/packages/client/src/components/MkInstanceTicker.vue +++ b/packages/client/src/components/MkInstanceTicker.vue @@ -1,6 +1,6 @@ @@ -33,6 +33,8 @@ const instance = props.instance ?? { software: Instance.softwareName || "Calckey", }; +const capitalize = (s: string) => s && s[0].toUpperCase() + s.slice(1) + const computedStyle = getComputedStyle(document.documentElement); const themeColor = instance.themeColor ?? computedStyle.getPropertyValue("--bg");