From a9dc80cffaa010a63e80872c5314daa9bab39320 Mon Sep 17 00:00:00 2001 From: Peng-YM <1048217874pengym@gmail.com> Date: Wed, 25 May 2022 18:34:02 +0800 Subject: [PATCH] Minor fixes --- scripts/vmess-ws-obfs-host.js | 2 +- vs.code-workspace | 8 ++++++++ web/src/views/SubEditor.vue | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 vs.code-workspace diff --git a/scripts/vmess-ws-obfs-host.js b/scripts/vmess-ws-obfs-host.js index ca13234..58c45c5 100644 --- a/scripts/vmess-ws-obfs-host.js +++ b/scripts/vmess-ws-obfs-host.js @@ -4,7 +4,7 @@ * #host=google.com */ function operator(proxies) { - const host = 'baidu.com'; + const { host } = $arguments; proxies.forEach(p => { if (p.type === 'vmess' && p.network === 'ws') { p["ws-opts"] = p["ws-opts"] || {}; diff --git a/vs.code-workspace b/vs.code-workspace new file mode 100644 index 0000000..876a149 --- /dev/null +++ b/vs.code-workspace @@ -0,0 +1,8 @@ +{ + "folders": [ + { + "path": "." + } + ], + "settings": {} +} \ No newline at end of file diff --git a/web/src/views/SubEditor.vue b/web/src/views/SubEditor.vue index 3068f27..23ba69e 100644 --- a/web/src/views/SubEditor.vue +++ b/web/src/views/SubEditor.vue @@ -8,7 +8,7 @@