evalstate's picture
download
raw
463 Bytes
export function isBrowser(headers) {
const acceptHeader = headers['accept'];
if (!acceptHeader) {
return false;
}
const accept = Array.isArray(acceptHeader) ? acceptHeader.join(',') : acceptHeader;
if (accept.includes('text/event-stream') || accept.includes('application/json')) {
return false;
}
if (accept.includes('*/*')) {
return true;
}
return false;
}
//# sourceMappingURL=browser-detection.js.map

Xet Storage Details

Size:
463 Bytes
·
Xet hash:
b9b4e6e1fd86786d4590a729d2162bf34904b71fea88b19d0d4ae1159122f848

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.