when no instance defined, load from calckey.social

This commit is contained in:
cutestnekoaqua 2023-04-08 17:44:27 +02:00
parent 121fc75b6d
commit 80bee75f42
No known key found for this signature in database
GPG Key ID: 6BF0964A5069C1E0
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
import { url } from "@/config"; import { url } from "@/config";
export const twemojiSvgBase = `${url}/twemoji`; export const twemojiSvgBase = `${url ? url : "https://calckey.social"}/twemoji`;
export function char2fileName(char: string): string { export function char2fileName(char: string): string {
let codes = Array.from(char).map((x) => x.codePointAt(0)?.toString(16)); let codes = Array.from(char).map((x) => x.codePointAt(0)?.toString(16));