stacker.news/wallets/webln/index.js

18 lines
453 B
JavaScript
Raw Normal View History

export const name = 'webln'
export const walletType = 'WEBLN'
export const walletField = 'walletWebLN'
2024-10-25 19:10:37 +00:00
export const validate = ({ enabled }) => {
if (enabled && typeof window?.webln === 'undefined') {
throw new Error('no WebLN provider found')
}
}
2024-10-25 19:10:37 +00:00
export const fields = []
export const card = {
title: 'WebLN',
subtitle: 'use a [WebLN provider](https://www.webln.guide/ressources/webln-providers) for payments',
badges: ['send only']
}