diff --git a/.eslintrc.js b/.eslintrc.js index 3a01220..091dddf 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -2,4 +2,7 @@ module.exports = { extends: [ '@nextcloud', ], + rules: { + 'no-console': 'off', + }, } diff --git a/src/App.vue b/src/App.vue index 3af24a5..08d5632 100644 --- a/src/App.vue +++ b/src/App.vue @@ -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') + } + } + }, }, }