firefox support
This commit is contained in:
parent
7b2de89444
commit
f9d3018668
@ -21,6 +21,10 @@
|
||||
"https://*/*",
|
||||
"activeTab"
|
||||
],
|
||||
"web_accessible_resources": [
|
||||
"static/wallet.html",
|
||||
"dist/taler-wallet-interaction-support.js"
|
||||
],
|
||||
"optional_permissions": [
|
||||
"http://*/*",
|
||||
"https://*/*",
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user