diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-01-03 14:42:06 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-01-03 14:42:06 +0100 |
commit | fd2cd9c383b07cd681c18137396deae025d98047 (patch) | |
tree | 05de454bb6fc0fcb95b66b6ef87bcd555e81b58c /src/webex/wxBackend.ts | |
parent | eb689d60aca8fc80e27ea60c4e4d7e848b01bea9 (diff) | |
download | wallet-core-fd2cd9c383b07cd681c18137396deae025d98047.tar.xz |
fix lint issues and separate message types into multiple files
Diffstat (limited to 'src/webex/wxBackend.ts')
-rw-r--r-- | src/webex/wxBackend.ts | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/webex/wxBackend.ts b/src/webex/wxBackend.ts index 213d234d4..a8ce5eebc 100644 --- a/src/webex/wxBackend.ts +++ b/src/webex/wxBackend.ts @@ -30,18 +30,21 @@ import { Index, Store, } from "../query"; + +import { AmountJson } from "../amounts"; + +import { ProposalRecord } from "../dbTypes"; import { AcceptTipRequest, - AmountJson, ConfirmReserveRequest, CreateReserveRequest, GetTipPlanchetsRequest, Notifier, ProcessTipResponseRequest, - ProposalRecord, ReturnCoinsRequest, TipStatusRequest, -} from "../types"; +} from "../walletTypes"; + import { Stores, WALLET_DB_VERSION, @@ -335,7 +338,12 @@ function handleMessage(sender: MessageSender, } case "get-tip-planchets": { const req = GetTipPlanchetsRequest.checked(detail); - return needsWallet().getTipPlanchets(req.merchantDomain, req.tipId, req.amount, req.deadline, req.exchangeUrl, req.nextUrl); + return needsWallet().getTipPlanchets(req.merchantDomain, + req.tipId, + req.amount, + req.deadline, + req.exchangeUrl, + req.nextUrl); } case "clear-notification": { return needsWallet().clearNotification(); @@ -702,11 +710,10 @@ export async function wxMain() { }); - // Clear notifications both when the popop opens, // as well when it closes. chrome.runtime.onConnect.addListener((port) => { - if (port.name == "popup") { + if (port.name === "popup") { if (currentWallet) { currentWallet.clearNotification(); } |