Move router into app, and out of util

This commit is contained in:
Jon Staab
2024-09-03 13:31:13 -07:00
parent 7b2233f8db
commit 6ee79eb219
12 changed files with 456 additions and 136 deletions
+2 -2
View File
@@ -10,10 +10,10 @@ import {deriveProfile} from './profiles'
export const zappers = withGetter(writable<Zapper[]>([]))
export const fetchZappers = (lnurls: string[]) => {
const base = AppContext.DUFFLEPUD_URL!
const base = AppContext.dufflepudUrl!
if (!base) {
throw new Error("DUFFLEPUD_URL is required to fetch zapper info")
throw new Error("AppContext.dufflepudUrl is required to fetch zapper info")
}
const zappersByLnurl = new Map<string, Zapper>()