From a3948ccb8e9ceb1d77b9e1eca5097f9dda5e0404 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Sat, 17 Oct 2020 12:10:09 +0200 Subject: [PATCH] eslint: enable console --- .eslintrc.js | 3 +++ src/App.vue | 9 +++++++++ 2 files changed, 12 insertions(+) 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') + } + } + }, }, }