diff --git a/src/extension/inpage-script/index.js b/src/extension/inpage-script/index.js index 34935d42a5..1a19bc4ee7 100644 --- a/src/extension/inpage-script/index.js +++ b/src/extension/inpage-script/index.js @@ -13,12 +13,7 @@ function init() { window.nostr = new NostrProvider(); window.webbtc = new WebBTCProvider(); window.webln = new WebLNProvider(); - window.alby = new AlbyProvider( - window.liquid, - window.nostr, - window.webbtc, - window.webln - ); + window.alby = new AlbyProvider(); const readyEvent = new Event("webln:ready"); window.dispatchEvent(readyEvent); diff --git a/src/extension/providers/alby/index.ts b/src/extension/providers/alby/index.ts index 4e3583b821..4c578e2741 100644 --- a/src/extension/providers/alby/index.ts +++ b/src/extension/providers/alby/index.ts @@ -5,22 +5,13 @@ import WebBTCProvider from "~/extension/providers/webbtc"; import WebLNProvider from "~/extension/providers/webln"; export default class AlbyProvider extends ProviderBase { - liquid: LiquidProvider; - nostr: NostrProvider; - webbtc: WebBTCProvider; - webln: WebLNProvider; + webln = new WebLNProvider(); + nostr = new NostrProvider(); + webbtc = new WebBTCProvider(); + liquid = new LiquidProvider(); - constructor( - liquid: LiquidProvider, - nostr: NostrProvider, - webbtc: WebBTCProvider, - webln: WebLNProvider - ) { + constructor() { super("alby"); - this.liquid = liquid; - this.nostr = nostr; - this.webbtc = webbtc; - this.webln = webln; } /**