mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 14:27:27 -08:00
Fix JS XHR requests in prom_console.js on IE11
IE11 does not support automatic JSON parsing for responses with xhr.responseType = 'json', so we have to to do it manually.
This commit is contained in:
parent
e3ec8fa83b
commit
2dd80225a4
File diff suppressed because one or more lines are too long
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue