From 5a35ac0fc238f5dba788ba1593e97f9605486431 Mon Sep 17 00:00:00 2001 From: Zachary Betz Date: Fri, 8 Mar 2019 12:09:32 -0600 Subject: [PATCH] IE friendly remove method --- layouts/partials/disqus-js-common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/disqus-js-common.js b/layouts/partials/disqus-js-common.js index e709807..1d69d8d 100644 --- a/layouts/partials/disqus-js-common.js +++ b/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'; \ No newline at end of file