From 80bee75f4281f184f4861080f551d05d7e58dffc Mon Sep 17 00:00:00 2001 From: cutestnekoaqua Date: Sat, 8 Apr 2023 17:44:27 +0200 Subject: [PATCH] when no instance defined, load from calckey.social --- packages/client/src/scripts/twemoji-base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/scripts/twemoji-base.ts b/packages/client/src/scripts/twemoji-base.ts index 599767c57a..23121955d9 100644 --- a/packages/client/src/scripts/twemoji-base.ts +++ b/packages/client/src/scripts/twemoji-base.ts @@ -1,6 +1,6 @@ import { url } from "@/config"; -export const twemojiSvgBase = `${url}/twemoji`; +export const twemojiSvgBase = `${url ? url : "https://calckey.social"}/twemoji`; export function char2fileName(char: string): string { let codes = Array.from(char).map((x) => x.codePointAt(0)?.toString(16));