mirror of
https://codeberg.org/SafeTwitch/safetwitch.git
synced 2024-12-22 13:22:58 -05:00
Don't use anonymous function for this
This commit is contained in:
parent
0b49686eda
commit
f87b235abe
1 changed files with 2 additions and 4 deletions
|
@ -48,8 +48,7 @@ export default {
|
|||
}
|
||||
}
|
||||
},
|
||||
getNextCategory() {
|
||||
window.onscroll = async () => {
|
||||
async getNextCategory() {
|
||||
let bottomOfWindow =
|
||||
document.documentElement.scrollTop + window.innerHeight ===
|
||||
document.documentElement.offsetHeight
|
||||
|
@ -62,11 +61,10 @@ export default {
|
|||
this.data.push(category)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
this.getNextCategory()
|
||||
window.onscroll = this.getNextCategory
|
||||
|
||||
let following = localStorage.getItem('following')
|
||||
if (following) {
|
||||
|
|
Loading…
Reference in a new issue