tighten security

This commit is contained in:
2022-04-02 08:37:47 +01:00
parent 8f0eb5d23c
commit 82981482df
7 changed files with 171 additions and 151 deletions

View File

@@ -14,9 +14,8 @@ let $grid = $('.comic-container').isotope({
});
$('#filters').on( 'click', 'button', function() {
if (typeof $( this ).attr('data-filter') === "undefined") {
}else {
if (typeof $( this ).attr('data-filter') === "undefined") {}
else {
buttonFilter = $( this ).attr('data-filter');
sessionStorage.setItem(window.location.href+"button", buttonFilter);
$grid.isotope();
@@ -132,4 +131,8 @@ save_button.addEventListener('click', function (event){
})
})
})
$( "img" ).on("error", function() {
$(this).src=$(this).attr('alt_src');
})