diff --git a/src/pages/[lang]/settings/pr.astro b/src/pages/[lang]/settings/pr.astro index 984a52ab..b3225949 100644 --- a/src/pages/[lang]/settings/pr.astro +++ b/src/pages/[lang]/settings/pr.astro @@ -244,12 +244,13 @@ import { MARKETPLACE_ENABLED } from "astro:env/client"; }); wispServerButton.addEventListener("click", () => { if (wispServerVal.value === "custom") { + settings.proxySettings.setWispURL(wispServerVal.value); if (customWispUrl.classList.contains('hidden')) { customWispUrl.classList.remove("hidden"); + customWispUrl.value = localStorage.getItem("customWispUrl") as string; } else { localStorage.setItem("customWispUrl", customWispUrl.value); - settings.proxySettings.setWispURL(wispServerVal.value); toast(".wispUrlMessage"); } }