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
|