1
0
Fork 0
mirror of https://github.com/SinTan1729/chhoto-url synced 2024-12-26 23:58:35 -06:00

fix: Remove surrounding quotes for siteurl

This commit is contained in:
Sayantan Santra 2024-03-24 16:43:27 -05:00
parent d278021e1b
commit d6dcd2f18d
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F

View file

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