Created
January 16, 2018 03:55
-
-
Save thedapifer/734e488b7361326d8eae90998524b313 to your computer and use it in GitHub Desktop.
JQuery Image Error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('img.avatar').error(function(){ | |
| $(this).addClass('is-broken'); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment