mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 15:04:50 +01:00
REF: browser
This commit is contained in:
parent
5e10b9a9a1
commit
a07f6fc75f
1 changed files with 6 additions and 6 deletions
|
@ -243,16 +243,16 @@ export default class Browser extends Component {
|
|||
} catch (_) {}
|
||||
// message from browser has ln invoice
|
||||
if (json && json.sendPayment) {
|
||||
// checking that we do not trigger alert too often:
|
||||
if (+new Date() - lastTimeTriedToPay < 3000) {
|
||||
return;
|
||||
}
|
||||
lastTimeTriedToPay = +new Date();
|
||||
|
||||
// checking that already asked about this invoice:
|
||||
if (processedInvoices[json.sendPayment]) {
|
||||
return;
|
||||
} else {
|
||||
// checking that we do not trigger alert too often:
|
||||
if (+new Date() - lastTimeTriedToPay < 3000) {
|
||||
return;
|
||||
}
|
||||
lastTimeTriedToPay = +new Date();
|
||||
//
|
||||
processedInvoices[json.sendPayment] = 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue