blob: 4a5c47c016abd61ec93682604066dfd386c1bdb3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Script that is injected into pages in order to allow merchants pages to
// query the availability of Taler.
'use strict';
// Listen to messages from the backend.
chrome.runtime.onMessage.addListener(
function(request, sender, sendResponse) {
// do nothing, yet
});
if (document && document.body)
{
document.body.addEventListener('taler-checkout-probe', function(e) {
let evt = new Event('taler-wallet-present');
document.body.dispatchEvent(evt);
});
}
console.log("Taler wallet: content page loaded");
|