0
Fork 0
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:
dragongoose 2023-08-18 13:31:11 -04:00
parent 0b49686eda
commit f87b235abe
No known key found for this signature in database
GPG key ID: 01397EEC371CDAA5

View file

@ -48,8 +48,7 @@ export default {
} }
} }
}, },
getNextCategory() { async getNextCategory() {
window.onscroll = async () => {
let bottomOfWindow = let bottomOfWindow =
document.documentElement.scrollTop + window.innerHeight === document.documentElement.scrollTop + window.innerHeight ===
document.documentElement.offsetHeight document.documentElement.offsetHeight
@ -62,11 +61,10 @@ export default {
this.data.push(category) this.data.push(category)
} }
} }
}
} }
}, },
async mounted() { async mounted() {
this.getNextCategory() window.onscroll = this.getNextCategory
let following = localStorage.getItem('following') let following = localStorage.getItem('following')
if (following) { if (following) {