Add Tor status to home and stats

This commit is contained in:
Cadence Fish
2020-02-03 04:09:40 +13:00
parent 6e136dc77a
commit 1fcdfce868
5 changed files with 23 additions and 4 deletions

View File

@@ -10,6 +10,10 @@ class TorSwitcher {
this.torManager = torManager
}
canUseTor() {
return !!this.torManager
}
/**
* Request from the URL.
* The test function will be called with the response object.