Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/cupper-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Betz <zwbetz@gmail.com>2019-03-08 21:09:32 +0300
committerZachary Betz <zwbetz@gmail.com>2019-03-08 21:09:32 +0300
commit5a35ac0fc238f5dba788ba1593e97f9605486431 (patch)
tree6ed0c0fd5d5a36f5cbd4a8175f0558570bdfc226 /layouts
parent04e7d5a003d46f8cce4941165f65a23498c558f5 (diff)
IE friendly remove method
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/disqus-js-common.js2
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