Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/web/html
diff options
context:
space:
mode:
authormhsanaei <ho3ein.sanaei@gmail.com>2025-03-12 21:24:39 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2025-03-12 21:27:19 +0300
commit280a22b57d14a372d99bcc49add515721290678b (patch)
tree47dc62d5c8425f1c12477c9dae8a4256262c4e19 /web/html
parent315d8520872ce1d19b7e7498f7e52a085f3273db (diff)
warp - optimize utility code
Diffstat (limited to 'web/html')
-rw-r--r--web/html/xui/warp_modal.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/xui/warp_modal.html b/web/html/xui/warp_modal.html
index 467f9854..20ce8139 100644
--- a/web/html/xui/warp_modal.html
+++ b/web/html/xui/warp_modal.html
@@ -176,10 +176,10 @@
},
async register() {
warpModal.loading(true);
- keys = Wireguard.generateKeypair();
+ const keys = Wireguard.generateKeypair();
const msg = await HttpUtil.post('/panel/xray/warp/reg', keys);
if (msg.success) {
- resp = JSON.parse(msg.obj);
+ const resp = JSON.parse(msg.obj);
warpModal.warpData = resp.data;
warpModal.warpConfig = resp.config;
this.collectConfig();