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