commit 47cbac17f37fbd6d0ffa57efd3b57c078bc21ad0
parent 69ba9f8107a8bb36989d57c292178b0ab7bb5897
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date: Fri, 26 Feb 2016 10:15:08 +0100
sending contract/payment events only if wallet installed
Diffstat:
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/examples/blog/essay_cc-form.html b/examples/blog/essay_cc-form.html
@@ -58,12 +58,7 @@
}
function has_taler_wallet_cb(aEvent){
- //{jscode}
- };
-
- function signal_taler_wallet_onload(){
- var eve = new Event('taler-probe');
- document.dispatchEvent(eve);
+ {jscode}
};
document.addEventListener("taler-wallet-present",
@@ -85,11 +80,8 @@
var eve = new CustomEvent('taler-execute-payment', {detail: detail});
document.dispatchEvent(eve);
}
+
</script>
<script type="application/javascript" src="taler-presence.js"></script>
- <script type="application/javascript">
- {jscode}
- </script>
-
</body>
</html>