From b8c51d2ef202f3134a44c0f3210588bace812be4 Mon Sep 17 00:00:00 2001 From: bohung Date: Fri, 6 Aug 2021 11:32:12 +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 4d52aa3..377c51b 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -474,7 +474,7 @@ }) }) init(); - if( $('div[data-pp="1000"]').html().trim() !== ''){ + if( $('div[data-pp="1000"]').length != 0 && $('div[data-pp="1000"]').html().trim() !== ''){ $('.black-screen').addClass('active'); } $('.close-btn').click(function() {