Browse Source

IE friendly remove method

Zachary Betz 6 years ago
parent
commit
5a35ac0fc2
1 changed files with 1 additions and 1 deletions
  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';