eslint: enable console

This commit is contained in:
Jonas Heinrich 2020-10-17 12:10:09 +02:00
parent 610953fc1b
commit a3948ccb8e
2 changed files with 12 additions and 0 deletions

View File

@ -2,4 +2,7 @@ module.exports = {
extends: [
'@nextcloud',
],
rules: {
'no-console': 'off',
},
}

View File

@ -50,6 +50,7 @@ export default {
}),
mounted() {
this.loadStations()
this.scroll()
},
methods: {
loadStations() {
@ -59,6 +60,14 @@ export default {
vm.tableData = data
})
},
scroll() {
window.onscroll = () => {
const bottomOfWindow = document.documentElement.scrollTop + window.innerHeight === document.documentElement.offsetHeight
if (bottomOfWindow) {
console.log('test')
}
}
},
},
}
</script>