subreddit vomit
This commit is contained in:
1 parent
5f1024c183
commit
b34f3e8d07
1 file changed
+6
-1
@@ -250,7 +250,12 @@ function subredditRequest(subreddit) {
|
||||
req.onreadystatechange = function () {
|
||||
if (req.readyState === 4 && req.status === 200) {
|
||||
|
||||
let json = JSON.parse(req.responseText);
|
||||
let json;
|
||||
if (req.responseText) {
|
||||
json = JSON.parse(req.responseText);
|
||||
} else {
|
||||
return ""
|
||||
}
|
||||
|
||||
let counter = 0;
|
||||
|
||||
|
||||
Reference in new issue
Block a user