subreddit vomit
This commit is contained in:
7
bot.js
7
bot.js
@@ -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