From fd09b3aaba742cdc21d7a6aa5786c786f3313388 Mon Sep 17 00:00:00 2001 From: Ricardo Arturo Cabral Mejia Date: Thu, 20 Jan 2022 13:06:51 +0000 Subject: [PATCH] style: fint lix --- src/store/state.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/store/state.js b/src/store/state.js index a9a7703..11577d5 100644 --- a/src/store/state.js +++ b/src/store/state.js @@ -1,6 +1,6 @@ import {LocalStorage} from 'quasar' -const isClientUsingTor = () => window.location.hostname.endsWith('.onion'); +const isClientUsingTor = () => window.location.hostname.endsWith('.onion') const getMainnetRelays = () => { const relays = { @@ -23,18 +23,18 @@ const getMainnetRelays = () => { relays[url] = prefs optional.splice(pick, 1) } - + return relays } const getTorRelays = () => ({ 'wss://jgqaglhautb4k6e6i2g34jakxiemqp6z4wynlirltuukgkft2xuglmqd.onion': {read: true, write: true}, -}); +}) export default function () { const relays = isClientUsingTor() ? getTorRelays() - : getMainnetRelays(); + : getMainnetRelays() return { keys: LocalStorage.getItem('keys') || {}, // {priv, pub }