From 392eeed286bfb41cc7b78d12cd349b08253a92a2 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Sat, 17 Oct 2020 12:37:10 +0200 Subject: [PATCH] fix vue warnings --- src/App.vue | 13 ++++--------- src/components/Table/Table.vue | 4 ++-- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/src/App.vue b/src/App.vue index 08d5632..4223f34 100644 --- a/src/App.vue +++ b/src/App.vue @@ -16,11 +16,7 @@ - +
@@ -62,10 +58,9 @@ export default { }, scroll() { window.onscroll = () => { - const bottomOfWindow = document.documentElement.scrollTop + window.innerHeight === document.documentElement.offsetHeight - if (bottomOfWindow) { - console.log('test') - } + if ((window.innerHeight + window.scrollY) >= document.body.scrollHeight) { + this.loadStations() + } } }, }, diff --git a/src/components/Table/Table.vue b/src/components/Table/Table.vue index b31f660..2ea0912 100644 --- a/src/components/Table/Table.vue +++ b/src/components/Table/Table.vue @@ -22,10 +22,10 @@
- + Add to favorites - + Details