MCPcopy Create free account
hub / github.com/ORCID/orcid-angular / A

Method A

scripts/new-relic.runtime.js:3318–3346  ·  view source on GitHub ↗
(e, n)

Source from the content-addressed store, hash-verified

3316 }
3317 }
3318 function A(e, n) {
3319 e.params.status = n.status
3320 var i = (function (e, t) {
3321 var r = e.responseType
3322 return 'json' === r && null !== t
3323 ? t
3324 : 'arraybuffer' === r || 'blob' === r || 'json' === r
3325 ? se(e.response)
3326 : 'text' === r || '' === r || void 0 === r
3327 ? se(e.responseText)
3328 : void 0
3329 })(n, e.lastSize)
3330 if (
3331 (i && (e.metrics.rxSize = i),
3332 e.sameOrigin && n.getAllResponseHeaders().indexOf(Ne) >= 0)
3333 ) {
3334 var o = n.getResponseHeader(Ne)
3335 o &&
3336 ((0, s.p)(
3337 O.rs,
3338 ['Ajax/CrossApplicationTracing/Header/Seen'],
3339 void 0,
3340 t.K7.metrics,
3341 r
3342 ),
3343 (e.params.cat = o.split(', ').pop()))
3344 }
3345 e.loadCaptureCalled = !0
3346 }
3347 r.on('new-xhr', a),
3348 r.on('open-xhr-start', c),
3349 r.on('open-xhr-end', d),

Callers

nothing calls this directly

Calls 1

seFunction · 0.85

Tested by

no test coverage detected