Created
August 13, 2015 19:21
-
-
Save dennis-best/19a9de097741dd0acddc to your computer and use it in GitHub Desktop.
Broken image catcher
This file contains 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
$(document).on 'page:change', -> | |
$('img').error -> | |
$(this).attr 'src', 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7' | |
$(this).addClass 'no-image' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment