We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 885ade4 commit a4ae6d8Copy full SHA for a4ae6d8
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