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: [ extends: [
'@nextcloud', '@nextcloud',
], ],
rules: {
'no-console': 'off',
},
} }

View File

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