From fa1a8ffcb25522edea08874afbd7f3bbc6e1f733 Mon Sep 17 00:00:00 2001 From: horus Date: Sat, 19 Sep 2020 02:19:15 +0200 Subject: minor bugfix --- public/js/app.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'public/js') diff --git a/public/js/app.js b/public/js/app.js index 99c1139..d822d11 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -37076,9 +37076,8 @@ __webpack_require__(/*! ./bootstrap */ "./resources/js/bootstrap.js"); $(".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 } - - $(this).addClass('mal-img-error'); // prevents loops }); /***/ }), -- cgit v1.2.3