fix: Remove surrounding quotes for siteurl

This commit is contained in:
SinTan1729 2024-03-24 16:43:27 -05:00
parent d278021e1b
commit d6dcd2f18d
No known key found for this signature in database
GPG Key ID: EB3E68BFBA25C85F

View File

@ -13,7 +13,7 @@ const getSiteUrl = async () => await fetch(prepSubdir("/api/siteurl"))
return window.location.host.replace(/\/$/,'');
}
else {
return text.replace(/\/$/,'');
return text.replace(/\/$/,'').replace(/^"/,'').replace(/"$/,'');
}
});