diff --git a/source/js/utils.js b/source/js/utils.js index ed752d0..cb84401 100644 --- a/source/js/utils.js +++ b/source/js/utils.js @@ -38,6 +38,8 @@ KEEP.initUtils = () => { const percent_dom = this.back2TopButton_dom.querySelector('.percent'); if (percent === '0') { this.back2TopButton_dom.classList.remove('show'); + } if (percent !== percent || !isFinite(percent)) { + this.back2TopButton_dom.classList.remove('show'); } else { this.back2TopButton_dom.classList.add('show'); percent_dom.innerHTML = percent;