From cfc631fb2bb56aef5e66dc52fc1e89365777159e Mon Sep 17 00:00:00 2001 From: piraces Date: Tue, 28 Feb 2023 23:04:22 +0100 Subject: [PATCH] feat: set relays in session storage on each contact list received (closes #31) --- web/assets/js/nostr.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/assets/js/nostr.js b/web/assets/js/nostr.js index d9fced7..f7e26b1 100644 --- a/web/assets/js/nostr.js +++ b/web/assets/js/nostr.js @@ -180,6 +180,7 @@ function connectToRelays(){ followListEvent = event; relays = JSON.parse(event.content); relaysUrls = Object.keys(relays); + sessionStorage.setItem(rsslayRelaysStorageKey, JSON.stringify(relays)); parseFollowList(followListEvent); } });