From df180f088693e7f678db5d9f4977d5e6ed45d38c Mon Sep 17 00:00:00 2001 From: bohung Date: Fri, 6 Aug 2021 11:32:18 +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 9294e03..d762076 100644 --- a/assets/javascripts/app.js +++ b/assets/javascripts/app.js @@ -448,7 +448,7 @@ $(document).ready(function() { $(".w-ba-banner__wrap").height(300); 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'); }