Browse Source

fix:屎山抗压

jinchaoyu 1 year ago
parent
commit
1df376f5cb
1 changed files with 3 additions and 1 deletions
  1. 3 1
      js/modalEffects.js

+ 3 - 1
js/modalEffects.js

@@ -42,7 +42,9 @@ var ModalEffects = (function() {
 					}, 25 );
 				}
 			});
-
+			if(!close) {
+				return
+			}
 			close.addEventListener( 'click', function( ev ) {
 				ev.stopPropagation();
 				removeModalHandler();