1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2025-12-15 19:05:09 +00:00

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.