Skip to content

Commit

Permalink
FileLoader: Added workaround for Alipay browser's bug. (#23548)
Browse files Browse the repository at this point in the history
* fix response.body bug

* Update FileLoader.js

Co-authored-by: 家靖 <zhangjiajing.zjj@alibaba-inc.com>
Co-authored-by: mrdoob <info@mrdoob.com>
  • Loading branch information
3 people authored Feb 23, 2022
1 parent e5b7217 commit 67b7a0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/loaders/FileLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ class FileLoader extends Loader {

}

if ( typeof ReadableStream === 'undefined' || response.body.getReader === undefined ) {
// Workaround: Checking if response.body === undefined for Alipay browser #23548

if ( typeof ReadableStream === 'undefined' || response.body === undefined || response.body.getReader === undefined ) {

return response;

Expand Down

0 comments on commit 67b7a0c

Please sign in to comment.