mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-13 17:14:05 -08:00
Merge pull request #1697 from sigma-star/master
Fix JS XHR requests in prom_console.js on IE11
This commit is contained in:
commit
2eaccdd111
File diff suppressed because one or more lines are too long
|
@ -543,6 +543,9 @@ PromConsole.Graph.prototype.dispatch = function() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var data = xhr.response;
|
var data = xhr.response;
|
||||||
|
if (typeof data !== "object") {
|
||||||
|
data = JSON.parse(xhr.responseText);
|
||||||
|
}
|
||||||
pending_requests -= 1;
|
pending_requests -= 1;
|
||||||
all_data[i] = data;
|
all_data[i] = data;
|
||||||
if (pending_requests === 0) {
|
if (pending_requests === 0) {
|
||||||
|
|
Loading…
Reference in a new issue