diff options
Diffstat (limited to 'src/wxBackend.ts')
-rw-r--r-- | src/wxBackend.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wxBackend.ts b/src/wxBackend.ts index 1588ec857..089526a43 100644 --- a/src/wxBackend.ts +++ b/src/wxBackend.ts @@ -259,6 +259,12 @@ function makeHandlers(db: IDBDatabase, } return wallet.refresh(detail.coinPub); }, + ["payback-coin"]: function (detail, sender) { + if (typeof detail.coinPub !== "string") { + return Promise.reject(Error("coinPub missing")); + } + return wallet.payback(detail.coinPub); + }, ["payment-failed"]: function (detail, sender) { // For now we just update exchanges (maybe the exchange did something // wrong and the keys were messed up). |