Add WebLN types, only show zap button when WebLN is available

This commit is contained in:
Alex Gleason
2024-01-22 14:37:44 -06:00
parent 459bc72365
commit 797fca7111
5 changed files with 9 additions and 4 deletions

View File

@ -57,9 +57,7 @@ function useSignerStream() {
return;
}
// @ts-ignore
await window.webln?.enable();
// @ts-ignore
await window.webln?.sendPayment(reqMsg.data.params.invoice);
}