소스 검색

IE friendly remove method

Zachary Betz 6 년 전
부모
커밋
5a35ac0fc2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      layouts/partials/disqus-js-common.js

+ 1 - 1
layouts/partials/disqus-js-common.js

@@ -1,6 +1,6 @@
 // Remove button
 var disqusButton = document.getElementById('disqus-button');
-disqusButton.remove(); 
+disqusButton.parentNode.removeChild(disqusButton); 
 // Un-hide comments
 var disqusComments = document.getElementById('disqus-comments');
 disqusComments.style.display = 'block';