WebUI: use native API for accessing query string

PR #22141.
This commit is contained in:
Chocobo1
2025-01-12 21:36:59 +08:00
committed by GitHub
parent 11991e62f5
commit c622d50814
28 changed files with 292 additions and 203 deletions

View File

@@ -27,7 +27,8 @@
}
});
const currentUrl = new URI().getData("url");
const searchParams = new URLSearchParams(window.location.search);
const currentUrl = searchParams.get("url");
$("url").value = currentUrl;
$("url").focus();
@@ -54,7 +55,7 @@
fetch("api/v2/rss/setFeedURL", {
method: "POST",
body: new URLSearchParams({
path: new URI().getData("path"),
path: searchParams.get("path"),
url: newUrl
})
})