disable restart tor button if tor is not enabled
parent
4847d9bddf
commit
b424ef6674
|
@ -28,8 +28,8 @@ let restartTorBtnControl = function(){
|
||||||
}
|
}
|
||||||
var restartTor = document.getElementsByClassName('restartTor')[0]
|
var restartTor = document.getElementsByClassName('restartTor')[0]
|
||||||
|
|
||||||
if (config.tor.use_existing_tor){
|
if (config.tor.use_existing_tor || ! config.transports.tor){
|
||||||
restartTor.classList.add('is-hidden')
|
restartTor.setAttribute('disabled', true)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue