mirror of
https://github.com/nitezs/sub2clash.git
synced 2025-04-04 12:43:44 +08:00
fix:修复ua标识等两个前端未正常回显问题
This commit is contained in:
parent
cc0b73d7a4
commit
88d8653ab5
@ -79,7 +79,7 @@
|
|||||||
<div class="form-group mb-3">
|
<div class="form-group mb-3">
|
||||||
<label for="user-agent">ua标识:</label>
|
<label for="user-agent">ua标识:</label>
|
||||||
<textarea class="form-control" id="user-agent" name="user-agent"
|
<textarea class="form-control" id="user-agent" name="user-agent"
|
||||||
placeholder="用于获取订阅的http请求中的user-agent标识(可选)" rows="1"></textarea>
|
placeholder="用于获取订阅的http请求中的user-agent标识(可选)" rows="3"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<!-- Refresh -->
|
<!-- Refresh -->
|
||||||
<div class="form-check mb-3">
|
<div class="form-check mb-3">
|
||||||
|
@ -256,6 +256,17 @@ async function parseInputURL() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (params.has("userAgent")) {
|
||||||
|
document.getElementById("user-agent").value = decodeURIComponent(
|
||||||
|
params.get("userAgent")
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (params.has("ignoreCountryGroup")) {
|
||||||
|
document.getElementById("igcg").checked =
|
||||||
|
params.get("ignoreCountryGroup") === "true";
|
||||||
|
}
|
||||||
|
|
||||||
if (params.has("replace")) {
|
if (params.has("replace")) {
|
||||||
parseAndFillReplaceParams(decodeURIComponent(params.get("replace")));
|
parseAndFillReplaceParams(decodeURIComponent(params.get("replace")));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user