mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
Add WalletConnect support
Co-authored-by: Njoku Emmanuel <kalunjoku123@gmail.com> Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
co-authored by
Njoku Emmanuel
parent
767355b782
commit
400a2df0a4
+7
-1
@@ -15,9 +15,15 @@
|
||||
import Loading from '@app/Loading.svelte';
|
||||
import Modal from '@app/Modal.svelte';
|
||||
|
||||
const loadConfig = getConfig().then(cfg => {
|
||||
const loadConfig = getConfig().then(async cfg => {
|
||||
if ($state.connection === Connection.Connected) {
|
||||
state.refreshBalance(cfg);
|
||||
} else if ($state.connection === Connection.Disconnected) {
|
||||
// Update the session state if we're already connected to WalletConnect
|
||||
// from a previous session.
|
||||
if (cfg.walletConnect.client.connected) {
|
||||
await state.connectWalletConnect(cfg);
|
||||
}
|
||||
}
|
||||
return cfg;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user