diff --git a/src/utils/deflate.js b/src/utils/deflate.js index 1915684b7..5e2c38d7a 100644 --- a/src/utils/deflate.js +++ b/src/utils/deflate.js @@ -22,12 +22,12 @@ async function browserDeflate(buffer) { function testCompressionStream() { try { const cs = new CompressionStream('deflate') + cs.writable.close() // Test if `Blob.stream` is present. React Native does not have the `stream` method const stream = new Blob([]).stream() stream.cancel() - return !!cs + return true } catch (_) { - // no bother + return false } - return false }