stacker.news/wallets/webln/index.js

18 lines
459 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 }) => {
2024-10-27 07:43:45 +00:00
if (enabled && typeof window !== 'undefined' && !window?.webln) {
2024-10-25 19:10:37 +00:00
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',
2024-10-22 19:07:09 +00:00
badges: ['send']
}