diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index e9e4bc2..2a607d9 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -401,7 +401,7 @@ $('.background').css('z-index','-1'); }; init(); - if( $('div[data-pp="1100"]').html() !== ''){ + if( $('div[data-pp="1100"]').length != 0 && $('div[data-pp="1100"]').html() !== ''){ $('.black-screen').addClass('active'); } $('.close-btn').click(function() {