diff --git a/resources/static/script.js b/resources/static/script.js index 698a3e6..35350bf 100644 --- a/resources/static/script.js +++ b/resources/static/script.js @@ -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(/"$/,''); } });