aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/taler-wallet-webextension/manifest-v2.json3
-rw-r--r--packages/taler-wallet-webextension/manifest-v3.json3
-rw-r--r--packages/taler-wallet-webextension/src/taler-wallet-interaction-support.ts7
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