commit 6604bda9f6e890b1b2bd447dc4dd5a4a544fee4c
parent 5d85866a0e452c375685b206dc0b9841cf240786
Author: Florian Dold <florian.dold@gmail.com>
Date: Wed, 5 Oct 2016 00:05:26 +0200
Merge branch 'master' of ssh://taler.net/var/git/wallet-webex
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git 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);