This commit is contained in:
2025-08-07 09:29:50 +00:00
parent 2f99a07ef7
commit c95880d22f
2 changed files with 7 additions and 5 deletions

View File

@@ -124,8 +124,8 @@ function check_vpn() {
$('#pro_on').show();
$('#vpn_off').hide();
$('#vpn_on').show();
document.getElementById('vpnToggle').checked = true;
document.querySelector(".switch-label").textContent = "ON";
//document.getElementById('vpnToggle').checked = true;
//document.querySelector(".switch-label").textContent = "ON";
}
}
else if (data=="2") {
@@ -133,8 +133,8 @@ function check_vpn() {
$('#pro_on').show();
$('#vpn_on').hide();
$('#vpn_off').show();
document.getElementById('vpnToggle').checked = false;
document.querySelector(".switch-label").textContent = "OFF";
//document.getElementById('vpnToggle').checked = false;
//document.querySelector(".switch-label").textContent = "OFF";
}
else { // data == 0
$('#pro_on').hide();