IE friendly remove method

This commit is contained in:
Zachary Betz 2019-03-08 12:09:32 -06:00
parent 04e7d5a003
commit 5a35ac0fc2

View File

@ -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';