aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-10-05 00:05:26 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-10-05 00:05:26 +0200
commit6604bda9f6e890b1b2bd447dc4dd5a4a544fee4c (patch)
treea7739215d0e56d47c5e3c12d048c28497e39f982
parent5d85866a0e452c375685b206dc0b9841cf240786 (diff)
parentec62d29c90958aa8d41474ed2fe5a179d6fafed7 (diff)
downloadwallet-core-6604bda9f6e890b1b2bd447dc4dd5a4a544fee4c.tar.xz
Merge branch 'master' of ssh://taler.net/var/git/wallet-webex
-rw-r--r--content_scripts/notify.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/content_scripts/notify.ts b/content_scripts/notify.ts
index 2c71efc2e..0e723b52c 100644
--- a/content_scripts/notify.ts
+++ b/content_scripts/notify.ts
@@ -149,7 +149,11 @@ namespace TalerNotify {
}
let responder = (msg?: any) => {
let fullMsg = Object.assign({}, msg, {callId});
- let evt = new CustomEvent(type + "-result", {detail: fullMsg});
+ let opts = { detail: fullMsg };
+ if ("function" == typeof cloneInto) {
+ opts = cloneInto(opts, document.defaultView);
+ }
+ let evt = new CustomEvent(type + "-result", opts);
document.dispatchEvent(evt);
};
handler(e.detail, responder);