Merge pull request #1697 from sigma-star/master

Fix JS XHR requests in prom_console.js on IE11
This commit is contained in:
Julius Volz 2016-06-01 20:15:02 -05:00
commit 2eaccdd111
2 changed files with 40 additions and 37 deletions

File diff suppressed because one or more lines are too long

View file

@ -543,6 +543,9 @@ PromConsole.Graph.prototype.dispatch = function() {
return;
}
var data = xhr.response;
if (typeof data !== "object") {
data = JSON.parse(xhr.responseText);
}
pending_requests -= 1;
all_data[i] = data;
if (pending_requests === 0) {