client/paging: replace 'var' with 'let'
Old habits die hard
This commit is contained in:
parent
7b342b58b5
commit
be0a70355d
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ class EndlessPageView {
|
|||
}
|
||||
|
||||
let topPageNode = null;
|
||||
var element = document.elementFromPoint(window.innerWidth / 2, 1);
|
||||
let element = document.elementFromPoint(window.innerWidth / 2, 1);
|
||||
while (element.parentNode !== null) {
|
||||
if (element.classList.contains('page')) {
|
||||
topPageNode = element;
|
||||
|
|
Loading…
Reference in a new issue