Skip to content

Commit

Permalink
add message the image is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
peter279k committed Aug 6, 2016
1 parent 0083dcd commit 70ad2fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ $(function() {

$( 'img' ).bind('error', function(ev) {
//error has been thrown
var id = $(this).attr('src');
console.log("image is missing... " + id);
$(this).remove();
});
});

0 comments on commit 70ad2fd

Please sign in to comment.