xhr.onreadystatechange = function()

in Frontend/connect-ccp-metric-worker.js [202:212]


        xhr.onreadystatechange = function() {
            postMessage(xhr.responseText);
            if (xhr.status = 200) {
              postMessage({type: 'contactSubmitted', contacts: data.map(a => a.contactId)});
              console.log('xhr success, request id:' + xhr.requestId);
            } else {
              console.log('xhr failure, request id:' + xhr.requestId);
              transaction.abort();
            }
            
        };