diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src')
-rw-r--r-- | packages/taler-wallet-webextension/src/taler-wallet-interaction-support.ts | 6 |
1 files changed, 6 insertions, 0 deletions
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 a0ddc40f1..7f706e815 100644 --- a/packages/taler-wallet-webextension/src/taler-wallet-interaction-support.ts +++ b/packages/taler-wallet-webextension/src/taler-wallet-interaction-support.ts @@ -98,10 +98,16 @@ function buildApi(config: Readonly<Info>): API { logger.debug(`onclick: could not convert "${hrefAttr.value}" into path`); return; } + // we can use window.open, but maybe some browser will block it? window.open(page, windowTarget); ev.preventDefault(); ev.stopPropagation(); ev.stopImmediatePropagation(); + // another possibility is to change the location when the click is made + // or when the anchor is found + // hrefAttr.value = page + // TODO: explore different possibilities and maybe allow the configuration + // using the meta-tag return false; } |