From dda90b51f6fc6fca48a68bc53088e1ed3f018a21 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 9 Sep 2022 12:22:26 -0300 Subject: find taler action in clipboard and withdraw with mobile --- packages/taler-wallet-webextension/src/context/iocContext.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'packages/taler-wallet-webextension/src/context') diff --git a/packages/taler-wallet-webextension/src/context/iocContext.ts b/packages/taler-wallet-webextension/src/context/iocContext.ts index b1a9aa128..c7fee0bc0 100644 --- a/packages/taler-wallet-webextension/src/context/iocContext.ts +++ b/packages/taler-wallet-webextension/src/context/iocContext.ts @@ -25,9 +25,11 @@ import { platform } from "../platform/api.js"; interface Type { findTalerUriInActiveTab: () => Promise; + findTalerUriInClipboard: () => Promise; } const Context = createContext({ findTalerUriInActiveTab: async () => undefined, + findTalerUriInClipboard: async () => undefined, }); /** @@ -56,7 +58,10 @@ export const IoCProviderForRuntime = ({ children: any; }): VNode => { return h(Context.Provider, { - value: { findTalerUriInActiveTab: platform.findTalerUriInActiveTab }, + value: { + findTalerUriInActiveTab: platform.findTalerUriInActiveTab, + findTalerUriInClipboard: platform.findTalerUriInClipboard, + }, children, }); }; -- cgit v1.2.3