disable restart tor button if tor is not enabled

master
Kevin Froman 2020-10-22 13:46:28 +00:00
parent 4847d9bddf
commit b424ef6674
1 changed files with 2 additions and 2 deletions

View File

@ -28,8 +28,8 @@ let restartTorBtnControl = function(){
}
var restartTor = document.getElementsByClassName('restartTor')[0]
if (config.tor.use_existing_tor){
restartTor.classList.add('is-hidden')
if (config.tor.use_existing_tor || ! config.transports.tor){
restartTor.setAttribute('disabled', true)
return
}