IE friendly remove method

This commit is contained in:
Zachary Betz 2019-03-08 12:09:32 -06:00
parent 04e7d5a003
commit 5a35ac0fc2
1 changed files with 1 additions and 1 deletions

View File

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