From 39022c1b2deb355ed6b2dc946f8e778204268970 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Thu, 18 Jul 2024 23:34:16 +0200 Subject: [PATCH] fix typo in shadowTLS #199 --- frontend/src/components/protocols/ShadowTls.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/protocols/ShadowTls.vue b/frontend/src/components/protocols/ShadowTls.vue index c019ac8..79bef39 100644 --- a/frontend/src/components/protocols/ShadowTls.vue +++ b/frontend/src/components/protocols/ShadowTls.vue @@ -114,22 +114,22 @@ export default { set(newValue: any) { switch (newValue) { case 1: - this.Inbound.password = undefined - this.Inbound.users = undefined - this.Inbound.handshake_for_server_name = undefined + delete this.Inbound.password + delete this.Inbound.users + delete this.Inbound.handshake_for_server_name break; case 2: if (!this.Inbound.password) { this.Inbound.password = "" } - this.Inbound.users = undefined + delete this.Inbound.users if (!this.Inbound.handshake_for_server_name) { this.Inbound.handshake_for_server_name = {} } break; case 3: - this.Inbound.password = undefined - if (Object.hasOwn(this.Inbound, 'users')) { + delete this.Inbound.password + if (!Object.hasOwn(this.Inbound, 'users')) { this.Inbound.users = [] } if (!this.Inbound.handshake_for_server_name) {