Merge remote-tracking branch 'origin/master'

# Conflicts:
#	source/js/utils.js
This commit is contained in:
XPoet 2021-01-23 01:08:23 +08:00
commit 17a506e4b6
1 changed files with 2 additions and 0 deletions

View File

@ -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;