From 746617888b66b09448c6bfe5a58f469661295e97 Mon Sep 17 00:00:00 2001 From: bohung Date: Fri, 6 Aug 2021 11:32:21 +0800 Subject: [PATCH] Fix bug --- assets/javascripts/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {