mirror of
https://iceshrimp.dev/Crimekillz/jointrashposs.git
synced 2024-11-22 08:53:49 +01:00
(fix) content A: recognize relative paths
This commit is contained in:
parent
11549f89ef
commit
a73c7218cc
@ -31,7 +31,11 @@ try {
|
|||||||
}
|
}
|
||||||
} catch(_) {
|
} catch(_) {
|
||||||
if(realHref !== '') {
|
if(realHref !== '') {
|
||||||
|
if (!realHref.startsWith('.') || !realHref.startsWith('http')) {
|
||||||
realHref = localePath(realHref);
|
realHref = localePath(realHref);
|
||||||
|
} else {
|
||||||
|
realHref = '../' + realHref;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user