warp - optimize utility code

This commit is contained in:
mhsanaei committed 2025-03-12 19:27:19 +01:00
1 parent 315d852087
commit 280a22b57d
2 files changed
+10 -13

No files matched your search

+2 -2
View File
@@ -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();