Parcourir la source

Update Timeline.vue

Daniel Supernault il y a 6 ans
Parent
commit
6d256f5b2b
1 fichiers modifiés avec 6 ajouts et 2 suppressions
  1. 6 2
      resources/assets/js/components/Timeline.vue

+ 6 - 2
resources/assets/js/components/Timeline.vue

@@ -397,7 +397,9 @@
 			.then(res => {
 				this.config = res.data;
 				this.fetchTimelineApi();
-				this.fetchProfile();
+				if(window.outerWidth > 767) {
+					this.fetchProfile();
+				}
 			});
 		},
 
@@ -459,7 +461,9 @@
 					this.max_id = Math.min(...ids);
 					$('.timeline .pagination').removeClass('d-none');
 					this.loading = false;
-					this.expRec();
+					if(window.outerWidth > 767) {
+						this.expRec();
+					}
 				}).catch(err => {
 				});
 			},