Closed

Description
The generated code makes a comparison to see if xhr.responseType === 'json'
but in my current Chrome, for example, this variable is always set to the empty string.
The generated code should only rely on the content-type
header, and even in the absence of this header I would suggest trying to parse it as json anyway, or at least making it an option.