From f0aec39bc39c97233719b15705a8ae65c92b1dcf Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sat, 12 Feb 2022 14:18:53 -0300 Subject: [PATCH] put the onion relays together with the others. --- main.js | 40 ++++++++++++++++------------------------ 1 file changed, 16 insertions(+), 24 deletions(-) diff --git a/main.js b/main.js index 6440fb6..ce39de5 100644 --- a/main.js +++ b/main.js @@ -1,32 +1,22 @@ import {createApp, h} from 'vue' import {relayConnect} from 'nostr-tools/relay' -const isUsingTor = () => window.location.hostname.endsWith('.onion') - -const clearnetRelays = [ - 'wss://nostr-pub.wellorder.net', - 'wss://relayer.fiatjaf.com', - 'wss://nostr.rocks', - 'wss://rsslay.fiatjaf.com', - 'wss://nostr-relay.herokuapp.com', - "wss://freedom-relay.herokuapp.com/ws", - "wss://nodestr-relay.dolu.dev/ws", - "wss://nostrrr.bublina.eu.org", - "wss://nostr-relay.freeberty.net", - "wss://nostr.bitcoiner.social", - "wss://nostr-relay.wlvs.space", - "wss://nostr.onsats.org", - "wss://nostr-relay.untethr.me" -] - -const torRelays = [ - 'ws://jgqaglhautb4k6e6i2g34jakxiemqp6z4wynlirltuukgkft2xuglmqd.onion' -] - const App = { data() { return { - relays: isUsingTor() ? torRelays : clearnetRelays, + relays: [ + 'wss://nostr-pub.wellorder.net', + 'wss://relayer.fiatjaf.com', + 'wss://nostr.rocks', + 'wss://rsslay.fiatjaf.com', + 'wss://freedom-relay.herokuapp.com/ws', + 'wss://nostr-relay.freeberty.net', + 'wss://nostr.bitcoiner.social', + 'wss://nostr-relay.wlvs.space', + 'wss://nostr.onsats.org', + 'wss://nostr-relay.untethr.me', + 'ws://jgqaglhautb4k6e6i2g34jakxiemqp6z4wynlirltuukgkft2xuglmqd.onion' + ], status: {} } }, @@ -70,7 +60,9 @@ const App = { clearTimeout(willUnsub) }, filter: { - ids: ['41ce9bc50da77dda5542f020370ecc2b056d8f2be93c1cedf1bf57efcab095b0'] + ids: [ + '41ce9bc50da77dda5542f020370ecc2b056d8f2be93c1cedf1bf57efcab095b0' + ] } }, 'nostr-registry'