diff options
author | Florian Dold <florian.dold@gmail.com> | 2015-12-05 16:04:25 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2015-12-05 16:04:25 +0100 |
commit | a176c9148930eae42fc9bf6d5b973c68d6816295 (patch) | |
tree | 6d1cc4874e4725654ae42f352131abf17e86ba45 /testpages | |
parent | 1089b40b1c03fa69c0e73dd43e4281aa96388171 (diff) | |
download | wallet-core-a176c9148930eae42fc9bf6d5b973c68d6816295.tar.xz |
Make wallet handshake conform more to spec.
Diffstat (limited to 'testpages')
-rw-r--r-- | testpages/testpage_merchant.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testpages/testpage_merchant.html b/testpages/testpage_merchant.html index 1598cc046..0e9e784a0 100644 --- a/testpages/testpage_merchant.html +++ b/testpages/testpage_merchant.html @@ -2,12 +2,12 @@ <script type="text/javascript"> "use strict"; function talerHandshake() { - document.addEventListener('taler-wallet-present', function(e) { + document.body.addEventListener('taler-wallet-present', function(e) { var x = document.getElementById('indicator'); x.innerHTML = 'found!'; }); var evt = new Event('taler-checkout-probe'); - document.dispatchEvent(evt); + document.body.dispatchEvent(evt); } window.onload = (e) => talerHandshake(); |