fix: load WebLN wallet later

This commit is contained in:
2023-11-10 10:13:41 +00:00
parent 5b2d8741ba
commit e087df2f63
2 changed files with 5 additions and 2 deletions

View File

@ -50,6 +50,8 @@ import { ListFeedPage } from "Pages/ListFeedPage";
import { updateRelayConnections } from "Hooks/useLoginRelays";
import { AboutPage } from "Pages/About";
import { OnboardingRoutes } from "Pages/onboarding";
import { setupWebLNWalletConfig } from "Wallet/WebLN";
import { Wallets } from "Wallet";
declare global {
interface Window {
@ -164,6 +166,8 @@ async function initSite() {
sc.setAttribute("data-domain", CONFIG.hostname);
document.head.appendChild(sc);
}
setupWebLNWalletConfig(Wallets);
return null;
}