diff options
author | Zachary Betz <zwbetz@gmail.com> | 2019-03-08 21:09:32 +0300 |
---|---|---|
committer | Zachary Betz <zwbetz@gmail.com> | 2019-03-08 21:09:32 +0300 |
commit | 5a35ac0fc238f5dba788ba1593e97f9605486431 (patch) | |
tree | 6ed0c0fd5d5a36f5cbd4a8175f0558570bdfc226 /layouts | |
parent | 04e7d5a003d46f8cce4941165f65a23498c558f5 (diff) |
IE friendly remove method
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/disqus-js-common.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 |