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
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-08-26 15:31:02 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-08-26 15:37:02 +0300
commit8489f5f528ea77fec9d6c2102251da9d16e95780 (patch)
tree32fa945019959d109a2a7ba5663435a0506c4d68 /web/html/common/qrcode_modal.html
parent872974910cc2ba7b736b2a78229eaed8ab9e62b3 (diff)
some changes
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/common/qrcode_modal.html')
-rw-r--r--web/html/common/qrcode_modal.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/web/html/common/qrcode_modal.html b/web/html/common/qrcode_modal.html
index 28404eb6..0b815690 100644
--- a/web/html/common/qrcode_modal.html
+++ b/web/html/common/qrcode_modal.html
@@ -37,15 +37,16 @@
this.inbound = dbInbound.toInbound();
settings = JSON.parse(this.inbound.settings);
this.client = settings.clients[clientIndex];
- remark = this.dbInbound.remark + ( this.client ? "-" + this.client.email : '');
+ remark = [this.dbInbound.remark, ( this.client ? this.client.email : '')].filter(Boolean).join('-');
address = this.dbInbound.address;
this.subId = '';
this.qrcodes = [];
if (this.inbound.tls && !ObjectUtil.isArrEmpty(this.inbound.stream.tls.settings.domains)) {
this.inbound.stream.tls.settings.domains.forEach((domain) => {
+ remarkText = [remark, domain.remark].filter(Boolean).join('-');
this.qrcodes.push({
- remark: remark + "-" + domain.remark,
- link: this.inbound.genLink(domain.domain, remark + "-" + domain.remark, clientIndex)
+ remark: remarkText,
+ link: this.inbound.genLink(domain.domain, remarkText, clientIndex)
});
});
} else {