Explorar el Código

IE friendly remove method

Zachary Betz hace 6 años
padre
commit
5a35ac0fc2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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';