Skip to content

Commit

Permalink
Load placeholder image from remote
Browse files Browse the repository at this point in the history
  • Loading branch information
hifocus committed Oct 8, 2022
1 parent 6a53fa3 commit 0f5dfaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion merger.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ <h2 id="name"></h2>
}

if (profile_error > 0) {
profile_url = profile_url = '/assets/images/placeholder.png'; // Set a default avatar in case profile image is undefined
profile_url = profile_url = 'https://i0.wp.com/cdn.jsdelivr.net/gh/qr-merger/[email protected]/assets/images/placeholder.png'; // Set a default avatar in case profile image is undefined
}

document.getElementById("i").style.background = "url('" + profile_url + "') no-repeat center/cover"; // Set center picture
Expand Down

0 comments on commit 0f5dfaa

Please sign in to comment.