diff --git a/source/js/utils.js b/source/js/utils.js index 37bdcd7..3f5cdbd 100644 --- a/source/js/utils.js +++ b/source/js/utils.js @@ -36,6 +36,8 @@ KEEP.initUtils = () => { const percent_dom = this.back2TopButton_dom.querySelector('.percent'); if (percent === '0') { this.back2TopButton_dom.style.display = 'none'; + } if (percent !== percent || !isFinite(percent)) { + this.back2TopButton_dom.style.display = 'none'; } else { this.back2TopButton_dom.style.display = 'flex'; percent_dom.innerHTML = percent;