From 30c0b8b50ac94575c6a4fd514b8fa9a3ff6d939b Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Tue, 2 Apr 2024 21:02:11 -0500 Subject: [PATCH] fix: Typo in script.js --- resources/static/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(/"$/, ''); } }