We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f60e1b1 commit db393e2Copy full SHA for db393e2
tzmap.js
@@ -73,7 +73,7 @@
73
if (!isHTTP || (200 <= gXHR.status && gXHR.status < 300)) {
74
var json = null;
75
try {
76
- if ("responseType" in gXHR) {
+ if ("responseType" in gXHR && gXHR.responseType == "json") {
77
json = gXHR.response;
78
} else {
79
json = JSON.parse(gXHR.responseText);
@@ -94,7 +94,12 @@
94
gXHR.onreadystatechange = rsc;
95
gXHR.open("GET", path);
96
if ("responseType" in gXHR) {
97
- gXHR.responseType = "json";
+ try {
98
+ gXHR.responseType = "json";
99
+ } catch(ex) {
100
+ // Chrome 16 (nightly) supports "text" but not "json"
101
+ gXHR.responseType = "text";
102
+ }
103
}
104
gXHR.send();
105
} catch(ex) {
0 commit comments