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.
2 parents 5d069f3 + 52dc1d1 commit 5e8ac76Copy full SHA for 5e8ac76
github.js
@@ -20,7 +20,7 @@
20
xhr.onreadystatechange = function () {
21
if (this.readyState == 4) {
22
if (this.status >= 200 && this.status < 300 || this.status === 304) {
23
- cb(null, raw ? this.responseText : JSON.parse(this.responseText));
+ cb(null, raw ? this.responseText : this.responseText ? JSON.parse(this.responseText) : true);
24
} else {
25
cb(this.status);
26
}
0 commit comments