From 280a22b57d14a372d99bcc49add515721290678b Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Wed, 12 Mar 2025 19:24:39 +0100 Subject: warp - optimize utility code --- web/html/xui/warp_modal.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/html') 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(); -- cgit v1.2.3