Skip to content

Commit

Permalink
Merge pull request #61 from p7s1digital/feature/add-suport-for-xhr-ar…
Browse files Browse the repository at this point in the history
…raybuffer-response

Add support for xhr arraybuffer response type
  • Loading branch information
rubensousa authored Oct 22, 2024
2 parents 460e193 + f2c17b1 commit 3ce5305
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jsbridge/src/main/assets/js/xhr.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,11 @@
this.response = this.responseText;
break;
case "arraybuffer":
error = "XHR arraybuffer response is not supported!";
if (this.responseText !== null) {
this.response = this.responseText;
} else {
error = "XHR arraybuffer response is not supported!";
}
break;
case "document":
this.response = this.responseText;
Expand Down

0 comments on commit 3ce5305

Please sign in to comment.