diff options
| author | mhsanaei <ho3ein.sanaei@gmail.com> | 2025-03-12 21:24:39 +0300 |
|---|---|---|
| committer | mhsanaei <ho3ein.sanaei@gmail.com> | 2025-03-12 21:27:19 +0300 |
| commit | 280a22b57d14a372d99bcc49add515721290678b (patch) | |
| tree | 47dc62d5c8425f1c12477c9dae8a4256262c4e19 /web/html | |
| parent | 315d8520872ce1d19b7e7498f7e52a085f3273db (diff) | |
warp - optimize utility code
Diffstat (limited to 'web/html')
| -rw-r--r-- | web/html/xui/warp_modal.html | 4 |
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(); |
