Skip to content

Commit 17db2c7

Browse files
committed
fix(Ascii Text Drawer): fix font base_url
1 parent 9ce1759 commit 17db2c7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/tools/ascii-text-drawer/ascii-text-drawer.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ const output = ref('');
1111
const errored = ref(false);
1212
const processing = ref(false);
1313
14-
figlet.defaults({ fontPath: '/figlet-fonts' });
14+
const base = import.meta.env.BASE_URL ?? '/';
1515
16-
const languagesOptions = languages.map(lang => ({ value: lang.id, label: lang.name }));
16+
figlet.defaults({ fontPath: `${base}figlet-fonts` });
1717
18-
figlet.defaults({ fontPath: '/figlet-fonts' });
18+
const languagesOptions = languages.map(lang => ({ value: lang.id, label: lang.name }));
1919
2020
watchEffect(async () => {
2121
const inputValue = input.value;

0 commit comments

Comments
 (0)