This commit is contained in:
BoHung Chiu 2021-08-06 11:32:09 +08:00
parent 6453ea6756
commit ede282e064
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@
// 當文件物件模型(DOM)載入後執行init函數
$(document).ready(function() {
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() {