Explorar o código

IE friendly remove method

Zachary Betz %!s(int64=6) %!d(string=hai) anos
pai
achega
5a35ac0fc2
Modificáronse 1 ficheiros con 1 adicións e 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';