[Glitch] Fix Vite build warning

Port a952541474 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Echo authored and Claire committed 2026-06-22 18:09:31 +02:00
1 parent bf5e26de15
commit 7075f1da49
1 file changed
+1 -1
@@ -5,6 +5,7 @@ import type { ApiCustomEmojiJSON } from '@/flavours/glitch/api_types/custom_emoj
import { openEmojiDB } from './db-schema';
import type { Database } from './db-schema';
import { importEmojiData } from './loader';
import { localeToSegmenter, toSupportedLocale } from './locale';
import {
extractTokens,
@@ -437,7 +438,6 @@ async function toLoadedLocale(localeString: string) {
}
if (!loadedLocales.has(locale)) {
log('Locale %s not loaded, importing...', locale);
const { importEmojiData } = await import('./loader');
await importEmojiData(locale);
return locale;
}