mirror of
https://github.com/SinTan1729/chhoto-url
synced 2024-12-25 15:18:37 -06:00
fix: Remove surrounding quotes for siteurl
This commit is contained in:
parent
d278021e1b
commit
d6dcd2f18d
1 changed files with 1 additions and 1 deletions
|
@ -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(/"$/,'');
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue