Hide regtest tab when not on localhost
This commit is contained in:
@@ -475,6 +475,13 @@ footer a{color:var(--accent);text-decoration:none}
|
||||
</footer>
|
||||
|
||||
<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 withTor = true, q = "";
|
||||
let minAmount = 50000;
|
||||
|
||||
Reference in New Issue
Block a user