diff options
author | Sebastian <sebasjm@gmail.com> | 2023-04-13 15:04:31 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-04-13 15:04:31 -0300 |
commit | 30c01185fc0b6bdc37327b2448e4748564fa8e3a (patch) | |
tree | bbc091749a815ef0af41211aa9b2d76a2966e416 /packages | |
parent | 9ef5a4931eff4a7b8589963733f266c58e873505 (diff) | |
download | wallet-core-30c01185fc0b6bdc37327b2448e4748564fa8e3a.tar.xz |
some fixes
Diffstat (limited to 'packages')
3 files changed, 10 insertions, 3 deletions
diff --git a/packages/taler-wallet-webextension/manifest-v2.json b/packages/taler-wallet-webextension/manifest-v2.json index 794aac3b1..bcce56e71 100644 --- a/packages/taler-wallet-webextension/manifest-v2.json +++ b/packages/taler-wallet-webextension/manifest-v2.json @@ -23,6 +23,9 @@ ], "web_accessible_resources": [ "static/wallet.html", + "dist/taler-wallet-interaction-loader.js.map", + "dist/taler-wallet-interaction-loader.js", + "dist/taler-wallet-interaction-support.js.map", "dist/taler-wallet-interaction-support.js" ], "optional_permissions": [ diff --git a/packages/taler-wallet-webextension/manifest-v3.json b/packages/taler-wallet-webextension/manifest-v3.json index 68b3e23ee..72c8d8cd8 100644 --- a/packages/taler-wallet-webextension/manifest-v3.json +++ b/packages/taler-wallet-webextension/manifest-v3.json @@ -38,6 +38,9 @@ { "resources": [ "static/wallet.html", + "dist/taler-wallet-interaction-loader.js.map", + "dist/taler-wallet-interaction-loader.js", + "dist/taler-wallet-interaction-support.js.map", "dist/taler-wallet-interaction-support.js" ], "matches": [ diff --git a/packages/taler-wallet-webextension/src/taler-wallet-interaction-support.ts b/packages/taler-wallet-webextension/src/taler-wallet-interaction-support.ts index 7f706e815..00f774cc6 100644 --- a/packages/taler-wallet-webextension/src/taler-wallet-interaction-support.ts +++ b/packages/taler-wallet-webextension/src/taler-wallet-interaction-support.ts @@ -62,7 +62,7 @@ interface API { } interface TalerSupport { info: Readonly<Info>; - api: API; + __internal: API; } function buildApi(config: Readonly<Info>): API { @@ -161,6 +161,7 @@ function buildApi(config: Readonly<Info>): API { function start() { if (shouldNotRun) return; + // FIXME: we can remove this if the script caller send information we need if (!(document.currentScript instanceof HTMLScriptElement)) return; const url = new URL(document.currentScript.src); @@ -178,14 +179,14 @@ function start() { }); const taler: TalerSupport = { info, - api: buildApi(info), + __internal: buildApi(info), }; //@ts-ignore window.taler = taler; //default behavior: register on install - taler.api.registerProtocolHandler(); + taler.__internal.registerProtocolHandler(); } // utils functions |