fix(Ascii Text Drawer): fix font base_url

This commit is contained in:
ShareVB committed 2025-04-12 10:48:41 +02:00
1 parent 9ce17597f7
commit 17db2c7115
1 file changed
+3 -3
@@ -11,12 +11,12 @@ const output = ref('');
const errored = ref(false);
const processing = ref(false);
figlet.defaults({ fontPath: '/figlet-fonts' });
const base = import.meta.env.BASE_URL ?? '/';
figlet.defaults({ fontPath: `${base}figlet-fonts` });
const languagesOptions = languages.map(lang => ({ value: lang.id, label: lang.name }));
figlet.defaults({ fontPath: '/figlet-fonts' });
watchEffect(async () => {
const inputValue = input.value;
const languageValue = language.value;