diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index d74ae70..d887350 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -476,7 +476,7 @@ }) }) 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'); } $('.close-btn').click(function() {