diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index e7d13bc..17f840b 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -386,7 +386,7 @@ - if( $('div[data-pp="1000"]').html().trim() !== ''){ + if( $('div[data-pp="1000"]').length != 0 && $('div[data-pp="1000"]').html().trim() !== ''){ $('.black-screen').addClass('active'); }