wallet-core/testpages/testpage_merchant.html

17 lines
461 B
HTML
Raw Normal View History

2015-11-25 20:41:31 +01:00
<!doctype html>
<script type="text/javascript">
"use strict";
function talerHandshake() {
document.body.addEventListener('taler-wallet-present', function(e) {
2015-11-25 20:41:31 +01:00
var x = document.getElementById('indicator');
x.innerHTML = 'found!';
});
var evt = new Event('taler-checkout-probe');
document.body.dispatchEvent(evt);
2015-11-25 20:41:31 +01:00
}
window.onload = (e) => talerHandshake();
</script>
Waiting for Taler wallet ... <span id='indicator'></span>