Commit f07525c3 authored by Romain Casati's avatar Romain Casati

Fix in responseType's XHR.

parent 3a3debc7
......@@ -132,7 +132,8 @@
that.xhr = function (params) {
const xhr = new XMLHttpRequest();
xhr.open(params.method, params.url, true);
xhr.responseType = params.responseType;
if( params.responseType != null )
xhr.responseType = params.responseType;
const promise = new Promise(function(resolve, reject) {
xhr.onload = function() {
if( xhr.status >= 200 && xhr.status < 300 ) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment