mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-06 03:03:44 +08:00
fix: Avoid empty user-agent
This commit is contained in:
parent
daf726ebbf
commit
2b26a10745
@ -51,7 +51,6 @@ export const ProfileViewer = forwardRef<ProfileViewerRef, Props>(
|
|||||||
desc: "",
|
desc: "",
|
||||||
url: "",
|
url: "",
|
||||||
option: {
|
option: {
|
||||||
// user_agent: "",
|
|
||||||
with_proxy: false,
|
with_proxy: false,
|
||||||
self_proxy: false,
|
self_proxy: false,
|
||||||
},
|
},
|
||||||
@ -99,6 +98,9 @@ export const ProfileViewer = forwardRef<ProfileViewerRef, Props>(
|
|||||||
if (form.option?.update_interval) {
|
if (form.option?.update_interval) {
|
||||||
form.option.update_interval = +form.option.update_interval;
|
form.option.update_interval = +form.option.update_interval;
|
||||||
}
|
}
|
||||||
|
if (form.option?.user_agent === "") {
|
||||||
|
delete form.option.user_agent;
|
||||||
|
}
|
||||||
const name = form.name || `${form.type} file`;
|
const name = form.name || `${form.type} file`;
|
||||||
const item = { ...form, name };
|
const item = { ...form, name };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user