Parcourir la source

:recycle: hiding some logs | adding some logs to debug intersections

tags/0.9.0
J il y a 4 ans
Parent
révision
831057f24a
2 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 3
    1
      vue-theme/src/pages/list.vue
  2. 1
    1
      vue-theme/src/store/index.js

+ 3
- 1
vue-theme/src/pages/list.vue Voir le fichier

@@ -192,13 +192,14 @@ export default {
192 192
                 .pop()
193 193
 
194 194
             if (!Object.values(sortTypes).includes(sort)) {
195
-                console.log('sort not found:', sort)
195
+                // console.warn('sort not found:', sort)
196 196
                 sort = null
197 197
             }
198 198
 
199 199
             if (!this[`all${type}Loaded`] || sort) this.getPosts(true)
200 200
 
201 201
             // Add the infinite scroll load
202
+            console.log('setting intersection loader...')
202 203
             this.setIntersectionLoader()
203 204
         },
204 205
     },
@@ -206,6 +207,7 @@ export default {
206 207
         if (this.$route.hash) {
207 208
             setTimeout(() => this.scrollTo(this.$route.hash), TIMEOUT)
208 209
         }
210
+        console.log('setting intersection loader...')
209 211
         this.setIntersectionLoader()
210 212
     },
211 213
     created() {

+ 1
- 1
vue-theme/src/store/index.js Voir le fichier

@@ -42,7 +42,7 @@ const mutations = {
42 42
             state.hero.text = ''
43 43
             state.hero.playbutton = false
44 44
         } else {
45
-            console.warn('Setting hero', hero)
45
+            // console.warn('Setting hero', hero)
46 46
             state.hero.text = hero.text
47 47
             state.hero.url = hero.url
48 48
             state.hero.type = hero.heroType

Chargement…
Annuler
Enregistrer