From f3eb4f055db80372298d60c073870a5af1431785 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Wed, 21 Feb 2024 12:06:49 +0330 Subject: SSL Security Alert Co-Authored-By: Alireza Ahmadi --- web/html/xui/index.html | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'web/html/xui/index.html') diff --git a/web/html/xui/index.html b/web/html/xui/index.html index 30ca4490..1bc0dfa4 100644 --- a/web/html/xui/index.html +++ b/web/html/xui/index.html @@ -34,6 +34,15 @@ + + + + @@ -532,6 +541,7 @@ backupModal, spinning: false, loadingTip: '{{ i18n "loading"}}', + showAlert: false, }, methods: { loading(spinning, tip = '{{ i18n "loading"}}') { @@ -655,14 +665,14 @@ }, }, async mounted() { - let retries = 0; - while (retries < 5) { + if (window.location.protocol !== "https:") { + this.showAlert = true; + } + while (true) { try { await this.getStatus(); - retries = 0; } catch (e) { - console.error("Error occurred while fetching status:", e); - retries++; + console.error(e); } await PromiseUtil.sleep(2000); } -- cgit v1.2.3