diff --git a/assets/javascripts/app.js b/assets/javascripts/app.js index a5764cc..bac8bb7 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -608,7 +608,7 @@ extendPanelWidget(); }) init(); - if( $('div[data-pp="1100"]').html().trim() !== ''){ + if( $('div[data-pp="1100"]').length != 0 && $('div[data-pp="1100"]').html().trim() !== ''){ $('.black-screen').addClass('active'); } $('.close-btn').click(function() {