forked from Kieran/snort
chore: formatting
This commit is contained in:
parent
930b493a12
commit
0ebd2f167a
@ -11,11 +11,13 @@ import AsyncButton from "Element/AsyncButton";
|
|||||||
|
|
||||||
import messages from "./messages";
|
import messages from "./messages";
|
||||||
|
|
||||||
const Blasters = [
|
const Blasters = ["wss://nostr.mutinywallet.com"];
|
||||||
"wss://nostr.mutinywallet.com"
|
|
||||||
];
|
|
||||||
|
|
||||||
export async function saveRelays(system: SystemInterface, publisher: EventPublisher | undefined, relays: Array<FullRelaySettings> | Record<string, RelaySettings>) {
|
export async function saveRelays(
|
||||||
|
system: SystemInterface,
|
||||||
|
publisher: EventPublisher | undefined,
|
||||||
|
relays: Array<FullRelaySettings> | Record<string, RelaySettings>,
|
||||||
|
) {
|
||||||
if (publisher) {
|
if (publisher) {
|
||||||
const ev = await publisher.relayList(relays);
|
const ev = await publisher.relayList(relays);
|
||||||
await system.BroadcastEvent(ev);
|
await system.BroadcastEvent(ev);
|
||||||
@ -33,7 +35,6 @@ const RelaySettingsPage = () => {
|
|||||||
return system.Sockets.filter(a => relays.item[a.address] === undefined);
|
return system.Sockets.filter(a => relays.item[a.address] === undefined);
|
||||||
}, [relays]);
|
}, [relays]);
|
||||||
|
|
||||||
|
|
||||||
const handleNewRelayChange = (event: React.ChangeEvent<HTMLInputElement>) => {
|
const handleNewRelayChange = (event: React.ChangeEvent<HTMLInputElement>) => {
|
||||||
const inputValue = event.target.value;
|
const inputValue = event.target.value;
|
||||||
const protocol = window.location.protocol;
|
const protocol = window.location.protocol;
|
||||||
|
Loading…
Reference in New Issue
Block a user