From e79c2d31fd1a8a4432939c61eb482f9b708e9ade Mon Sep 17 00:00:00 2001 From: bohung Date: Fri, 6 Aug 2021 11:32:25 +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 007a9e5..2d1a854 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -626,7 +626,7 @@ extendPanelWidget(); } else { $('.introtext').before($('.introimage')); } - if( $('div[data-pp="2000"]').html().trim() !== ''){ + if( $('div[data-pp="2000"]').length != 0 && $('div[data-pp="2000"]').html().trim() !== ''){ $('.black-screen').addClass('active'); } $('.close-btn').click(function() {