Pārlūkot izejas kodu

IE friendly remove method

Zachary Betz 6 gadi atpakaļ
vecāks
revīzija
5a35ac0fc2
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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';