mirror of
https://github.com/styppo/hamstr.git
synced 2024-10-18 13:33:22 +00:00
style: fint lix
This commit is contained in:
parent
79d4846d98
commit
fd09b3aaba
@ -1,6 +1,6 @@
|
|||||||
import {LocalStorage} from 'quasar'
|
import {LocalStorage} from 'quasar'
|
||||||
|
|
||||||
const isClientUsingTor = () => window.location.hostname.endsWith('.onion');
|
const isClientUsingTor = () => window.location.hostname.endsWith('.onion')
|
||||||
|
|
||||||
const getMainnetRelays = () => {
|
const getMainnetRelays = () => {
|
||||||
const relays = {
|
const relays = {
|
||||||
@ -23,18 +23,18 @@ const getMainnetRelays = () => {
|
|||||||
relays[url] = prefs
|
relays[url] = prefs
|
||||||
optional.splice(pick, 1)
|
optional.splice(pick, 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
return relays
|
return relays
|
||||||
}
|
}
|
||||||
|
|
||||||
const getTorRelays = () => ({
|
const getTorRelays = () => ({
|
||||||
'wss://jgqaglhautb4k6e6i2g34jakxiemqp6z4wynlirltuukgkft2xuglmqd.onion': {read: true, write: true},
|
'wss://jgqaglhautb4k6e6i2g34jakxiemqp6z4wynlirltuukgkft2xuglmqd.onion': {read: true, write: true},
|
||||||
});
|
})
|
||||||
|
|
||||||
export default function () {
|
export default function () {
|
||||||
const relays = isClientUsingTor()
|
const relays = isClientUsingTor()
|
||||||
? getTorRelays()
|
? getTorRelays()
|
||||||
: getMainnetRelays();
|
: getMainnetRelays()
|
||||||
|
|
||||||
return {
|
return {
|
||||||
keys: LocalStorage.getItem('keys') || {}, // {priv, pub }
|
keys: LocalStorage.getItem('keys') || {}, // {priv, pub }
|
||||||
|
Loading…
Reference in New Issue
Block a user