mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-04-11 13:20:37 +02:00
fix bitcoin connect without extension
This commit is contained in:
parent
76f4cb0bdb
commit
85b6ccc9f3
@ -3,6 +3,12 @@ import { createRoot } from "react-dom/client";
|
||||
import { App } from "./app";
|
||||
import { GlobalProviders } from "./providers/global";
|
||||
|
||||
// setup bitcoin connect
|
||||
import { onConnected } from "@getalby/bitcoin-connect-react";
|
||||
onConnected((provider) => {
|
||||
if (!window.webln) window.webln = provider;
|
||||
});
|
||||
|
||||
// setup dayjs
|
||||
import dayjs from "dayjs";
|
||||
import relativeTimePlugin from "dayjs/plugin/relativeTime";
|
||||
|
Loading…
x
Reference in New Issue
Block a user