mirror of
https://github.com/minoplhy/chhoto-url.git
synced 2024-11-22 09:16:46 +00:00
fix: Remove surrounding quotes for siteurl
This commit is contained in:
parent
d278021e1b
commit
d6dcd2f18d
@ -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 New Issue
Block a user