summaryrefslogtreecommitdiff
path: root/src/chrome/content/igb/trusted.js
blob: 3c6a6c722a062e84698b6b0365c9a80106091925 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
window.onerror = function (e) { alert(e); };
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function () {
    if (xhr.readyState === 4) {
        var obj = JSON.parse(xhr.responseText);
        CCPEVE[obj[0]].apply(CCPEVE, obj[1]);
        // IGB imposes a 1s delay between JS calls
        setTimeout(function () {
            xhr.open("GET", "trusted");
            xhr.send();
        }, 1000);
    }
};
xhr.open("GET", "trusted");
xhr.send();