diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/context/iocContext.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/context/iocContext.ts | 7 |
1 files changed, 6 insertions, 1 deletions
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<string | undefined>; + findTalerUriInClipboard: () => Promise<string | undefined>; } const Context = createContext<Type>({ 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, }); }; |