summaryrefslogtreecommitdiff
path: root/resources/js/app.js
blob: 4e2e7f6a568aceaa7219c76c91306d993269952f (plain)
1
2
3
4
5
6
7
8
require('./bootstrap');

$(".mal-img").not(".mal-img-error").on("error", function() {
	if ( ! $(this).hasClass("mal-img-error") ) {
		this.src = $(this).data("img-src");
		$(this).addClass('mal-img-error'); // prevents loops
	}
});