From d6dcd2f18d9b617b38c0de6d3308c470d837e0fd Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Sun, 24 Mar 2024 16:43:27 -0500 Subject: [PATCH] fix: Remove surrounding quotes for siteurl --- 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 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(/"$/,''); } });