This commit is contained in:
parent
5b2d8741ba
commit
e087df2f63
@ -4,7 +4,7 @@ import { ExternalStore, decodeInvoice } from "@snort/shared";
|
|||||||
import { unwrap } from "SnortUtils";
|
import { unwrap } from "SnortUtils";
|
||||||
import LNDHubWallet from "./LNDHub";
|
import LNDHubWallet from "./LNDHub";
|
||||||
import { NostrConnectWallet } from "./NostrWalletConnect";
|
import { NostrConnectWallet } from "./NostrWalletConnect";
|
||||||
import { setupWebLNWalletConfig, WebLNWallet } from "./WebLN";
|
import { WebLNWallet } from "./WebLN";
|
||||||
|
|
||||||
export enum WalletKind {
|
export enum WalletKind {
|
||||||
LNDHub = 1,
|
LNDHub = 1,
|
||||||
@ -134,7 +134,6 @@ export class WalletStore extends ExternalStore<WalletStoreSnapshot> {
|
|||||||
this.#configs = [];
|
this.#configs = [];
|
||||||
this.#instance = new Map();
|
this.#instance = new Map();
|
||||||
this.load(false);
|
this.load(false);
|
||||||
setupWebLNWalletConfig(this);
|
|
||||||
this.notifyChange();
|
this.notifyChange();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,6 +50,8 @@ import { ListFeedPage } from "Pages/ListFeedPage";
|
|||||||
import { updateRelayConnections } from "Hooks/useLoginRelays";
|
import { updateRelayConnections } from "Hooks/useLoginRelays";
|
||||||
import { AboutPage } from "Pages/About";
|
import { AboutPage } from "Pages/About";
|
||||||
import { OnboardingRoutes } from "Pages/onboarding";
|
import { OnboardingRoutes } from "Pages/onboarding";
|
||||||
|
import { setupWebLNWalletConfig } from "Wallet/WebLN";
|
||||||
|
import { Wallets } from "Wallet";
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface Window {
|
interface Window {
|
||||||
@ -164,6 +166,8 @@ async function initSite() {
|
|||||||
sc.setAttribute("data-domain", CONFIG.hostname);
|
sc.setAttribute("data-domain", CONFIG.hostname);
|
||||||
document.head.appendChild(sc);
|
document.head.appendChild(sc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setupWebLNWalletConfig(Wallets);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user