Buckets:
| export function getXHRResponse(xhr) { | |
| switch (xhr.responseType) { | |
| case 'json': { | |
| if ('response' in xhr) { | |
| return xhr.response; | |
| } | |
| else { | |
| const ieXHR = xhr; | |
| return JSON.parse(ieXHR.responseText); | |
| } | |
| } | |
| case 'document': | |
| return xhr.responseXML; | |
| case 'text': | |
| default: { | |
| if ('response' in xhr) { | |
| return xhr.response; | |
| } | |
| else { | |
| const ieXHR = xhr; | |
| return ieXHR.responseText; | |
| } | |
| } | |
| } | |
| } | |
| //# sourceMappingURL=getXHRResponse.js.map |
Xet Storage Details
- Size:
- 674 Bytes
- Xet hash:
- cab45ec22e1ec5c5ee5062303522e6a25f94fea53390df2919499e87d549adbf
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.