fix(My IP Address): fix base url

May fix #58
This commit is contained in:
ShareVB committed 2025-04-19 10:30:48 +02:00
1 parent 4911afb7b7
commit 7bc3f3bc18
1 file changed
+3 -1
+3 -1
View File
@@ -15,7 +15,9 @@ declare global {
}
}
const { load: loadIpLookup } = useScriptTag('/iplookup.js', undefined, { type: 'module', manual: true });
const base = import.meta.env.BASE_URL ?? '/';
const { load: loadIpLookup } = useScriptTag(`${base}iplookup.js`, undefined, { type: 'module', manual: true });
const [clientIPDetails, refreshClientIP] = computedRefreshableAsync(async () => {
const ipv4 = { ip: '', error: '' };