Hide regtest tab when not on localhost

This commit is contained in:
2026-07-22 12:43:47 -04:00
parent 8c75e40edc
commit e395da105e

View File

@@ -475,6 +475,13 @@ footer a{color:var(--accent);text-decoration:none}
</footer> </footer>
<script> <script>
if (window.location.hostname !== 'localhost') {
const regtestBtn = document.querySelector('#chainSeg [data-c="regtest"]');
if (regtestBtn) {
regtestBtn.style.display = 'none';
regtestBtn.setAttribute('aria-pressed', 'false');
}
}
let allServers = []; let allServers = [];
let withTor = true, q = ""; let withTor = true, q = "";
let minAmount = 50000; let minAmount = 50000;