diff options
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(); |
