tus-js-client-stall-detection
Version:
A pure JavaScript client for the tus resumable upload protocol
13 lines • 560 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isReactNativePlatform = isReactNativePlatform;
exports.isReactNativeFile = isReactNativeFile;
function isReactNativePlatform() {
return (typeof navigator !== 'undefined' &&
typeof navigator.product === 'string' &&
navigator.product.toLowerCase() === 'reactnative');
}
function isReactNativeFile(input) {
return (input != null && typeof input === 'object' && 'uri' in input && typeof input.uri === 'string');
}
//# sourceMappingURL=isReactNative.js.map