Commit 8d26e67d authored by nanahira's avatar nanahira

update detection

parent 11e41487
......@@ -53,7 +53,7 @@ function request_avatar(response, username, fallback_username) {
response.end("Request error.");
}
console.error("REQUEST ERROR", error);
} else if (body == "{\"message\":\"Not Found\"}" || body == "{\"message\":\"Authentication Error\"}") {
} else if (!body.startsWith("http")) {
if (fallback_username) {
request_avatar(response, fallback_username);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment