We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8a53907 + a4ae6d8 commit fae21a7Copy full SHA for fae21a7
1 file changed
1-js/10-es-modern/11-promise/article.md
@@ -608,7 +608,7 @@ httpGet('/article/promise/user.json')
608
609
httpGet('/article/promise/userNoGithub.json')
610
.then(JSON.parse)
611
- .then(user => loadUrl(`https://api.github.com/users/${user.name}`))
+ .then(user => httpGet(`https://api.github.com/users/${user.name}`))
612
.then(
613
JSON.parse,
614
function githubError(error) {
@@ -618,7 +618,7 @@ httpGet('/article/promise/userNoGithub.json')
618
throw error;
619
}
620
621
- })
+ )
622
.then(function showAvatar(githubUser) {
623
let img = new Image();
624
img.src = githubUser.avatar_url;
0 commit comments