diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index 9294e03..d762076 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -448,7 +448,7 @@ $(document).ready(function() { $(".w-ba-banner__wrap").height(300); init(); - if( $('div[data-pp="1000"]').html().trim() !== ''){ + if( $('div[data-pp="1000"]').length != 0 && $('div[data-pp="1000"]').html().trim() !== ''){ $('.black-screen').addClass('active'); }