Merge remote-tracking branch 'origin/master'
# Conflicts: # source/js/utils.js
This commit is contained in:
commit
17a506e4b6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue