diff --git a/resources/static/script.js b/resources/static/script.js index 238d518..49c4392 100644 --- a/resources/static/script.js +++ b/resources/static/script.js @@ -13,7 +13,7 @@ const getSiteUrl = async () => { return window.location.host.replace(/\/$/, ''); } else { - return text.replace(/\/$/, '').replace(/^"/, '').replace(/"$/, ''); + return url.replace(/\/$/, '').replace(/^"/, '').replace(/"$/, ''); } }