18 lines
459 B
JavaScript
Raw Normal View History

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