From 44867e073ca74c2ed773cc6d872d89f5dbb4f78c Mon Sep 17 00:00:00 2001 From: bohung Date: Fri, 6 Aug 2021 11:32:14 +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 3a93e5e..cf22de2 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -606,7 +606,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() {