summaryrefslogtreecommitdiff
path: root/src/frontend/index.html
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2015-12-18 13:39:35 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2015-12-18 13:39:35 +0100
commitfa32cc5feaf801651c18e3ad1c812c336f3a359d (patch)
treedd2fd97bf076db798ab4fe4c1ccef03c365013fb /src/frontend/index.html
parent4b528005ca4aacc366ce0e72bdc17a78b213d2ac (diff)
downloadmerchant-fa32cc5feaf801651c18e3ad1c812c336f3a359d.tar.gz
merchant-fa32cc5feaf801651c18e3ad1c812c336f3a359d.tar.bz2
merchant-fa32cc5feaf801651c18e3ad1c812c336f3a359d.zip
halfbaking document-through messagging
Diffstat (limited to 'src/frontend/index.html')
-rw-r--r--src/frontend/index.html20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/frontend/index.html b/src/frontend/index.html
index 8111735f..edeaf4f2 100644
--- a/src/frontend/index.html
+++ b/src/frontend/index.html
@@ -168,7 +168,7 @@
function signal_me()
{
var eve = new Event('taler-checkout-probe');
- document.body.dispatchEvent(eve);
+ document.dispatchEvent(eve);
//alert("signaling");
};
@@ -176,21 +176,21 @@
wallet_installed_cb();
}
- document.body.addEventListener("taler-unload",
- wallet_uninstalled_cb,
- false, false);
+ document.addEventListener("taler-unload",
+ wallet_uninstalled_cb,
+ false, false);
/* Set up a listener to be called whenever a Wallet gets installed
so that the user is led towards the demo's steps progressively */
- document.body.addEventListener("taler-wallet-present",
- wallet_installed_cb,
- false, false);
+ document.addEventListener("taler-wallet-present",
+ wallet_installed_cb,
+ false, false);
/* Setup callback to be called whenever the wallet is loaded/enabled
while the browser is already on this page */
- document.body.addEventListener("taler-load",
- signal_me,
- false);
+ document.addEventListener("taler-load",
+ signal_me,
+ false);
</script>
</body>
</html>