From 011960c1654635df6f5922cf14de3904a0986d13 Mon Sep 17 00:00:00 2001 From: bohung Date: Fri, 6 Aug 2021 11:32:27 +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() {