diff --git a/src/tools/age-crypto/age-crypto.vue b/src/tools/age-crypto/age-crypto.vue index 94a3b019..72ab5b3b 100644 --- a/src/tools/age-crypto/age-crypto.vue +++ b/src/tools/age-crypto/age-crypto.vue @@ -37,7 +37,9 @@ declare class Go { run(instance: WebAssembly.Instance): Promise; } -const { load: loadGo } = useScriptTag('/age-wasm/wasm_exec.js', undefined, { type: 'module', manual: true }); +const base = import.meta.env.BASE_URL ?? '/'; + +const { load: loadGo } = useScriptTag(`${base}age-wasm/wasm_exec.js`, undefined, { type: 'module', manual: true }); await loadGo(); diff --git a/src/tools/math-formats-converter/math-formats-converter.vue b/src/tools/math-formats-converter/math-formats-converter.vue index 6ee89e32..1a52d538 100644 --- a/src/tools/math-formats-converter/math-formats-converter.vue +++ b/src/tools/math-formats-converter/math-formats-converter.vue @@ -6,7 +6,9 @@ import { useQueryParam, useQueryParamOrStorage } from '@/composable/queryParams' const { t } = useI18n(); -const { load: loadPlurimath } = useScriptTag('/plurimath/index.js', undefined, { type: 'module', manual: true }); +const base = import.meta.env.BASE_URL ?? '/'; + +const { load: loadPlurimath } = useScriptTag(`${base}plurimath/index.js`, undefined, { type: 'module', manual: true }); const formats = [ { value: 'asciimath', label: t('tools.math-formats-converter.texts.label-asciimath') },