when no instance defined, load from calckey.social
This commit is contained in:
parent
121fc75b6d
commit
80bee75f42
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue