From 6d47c9d555fb810a1d6c8292030422030ffee13d 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 21de324e5..f067f338b 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");