mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 05:52:38 +02:00
Be sure to callback even on profile failure.
This commit is contained in:
parent
d84dd4ce67
commit
3113dced7b
1 changed files with 1 additions and 0 deletions
|
@ -400,6 +400,7 @@ function getProfilePicture(username, callback) { // callback(url) if successfull
|
|||
var matched = !error && html.match(/img class="users-img" src="([^"]*)"/);
|
||||
if (!matched) {
|
||||
print('Error: Unable to get profile picture for', username, error);
|
||||
callback('');
|
||||
return;
|
||||
}
|
||||
callback(matched[1]);
|
||||
|
|
Loading…
Reference in a new issue