mirror of
https://github.com/prometheus/prometheus
synced 2026-04-30 23:11:34 +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:
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) {
|
||||
|
||||
Reference in New Issue
Block a user