Przeglądaj źródła

:recycle: checking for intersection observer before clearing on load

tags/0.9.0
J 4 lat temu
rodzic
commit
10da2a842d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      vue-theme/src/pages/list.vue

+ 1
- 1
vue-theme/src/pages/list.vue Wyświetl plik

@@ -179,7 +179,7 @@ export default {
179 179
         },
180 180
         unsetIntersectionLoader() {
181 181
             const footerEl = document.querySelector(INTERSECT_SELECTOR)
182
-            if(!footerEl) return
182
+            if(!footerEl || !this.observer) return
183 183
 
184 184
             console.warn('unsetting intersection handler on:', footerEl, this.sortBy)
185 185
             this.observer.unobserve(footerEl)

Ładowanie…
Anuluj
Zapisz