|
|
@@ -175,8 +175,6 @@ export default {
|
|
175
|
175
|
}
|
|
176
|
176
|
this.observer = new IntersectionObserver(onIntersect, { threshold: 0.80 })
|
|
177
|
177
|
this.observer.observe(document.querySelector(INTERSECT_SELECTOR))
|
|
178
|
|
- console.log('--- observer')
|
|
179
|
|
- console.log(this.observer)
|
|
180
|
178
|
},
|
|
181
|
179
|
unsetIntersectionLoader() {
|
|
182
|
180
|
const footerEl = document.querySelector(INTERSECT_SELECTOR)
|
|
|
@@ -224,7 +222,12 @@ export default {
|
|
224
|
222
|
.filter(p => p)
|
|
225
|
223
|
.pop()
|
|
226
|
224
|
}
|
|
227
|
|
- if (findSortBy(to) != findSortBy(from) && typeFromRoute(to) == typeFromRoute(from)) {
|
|
|
225
|
+ if (
|
|
|
226
|
+ findSortBy(to) != findSortBy(from) &&
|
|
|
227
|
+ typeFromRoute(to) == typeFromRoute(from) &&
|
|
|
228
|
+ // Post slug sometimes appears as a sort
|
|
|
229
|
+ sortTypes.includes(findSortBy(to)) && sortTypes.includes(findSortBy(from))
|
|
|
230
|
+ ) {
|
|
228
|
231
|
this.clearAndInitPostList('$route watcher')
|
|
229
|
232
|
}
|
|
230
|
233
|
}
|