From 6d256f5b2bca1a73859fee348970503e6a0b6a2b Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 29 Apr 2019 20:59:12 -0600 Subject: [PATCH] Update Timeline.vue --- resources/assets/js/components/Timeline.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/components/Timeline.vue b/resources/assets/js/components/Timeline.vue index 34112e1e..0d53b0b5 100644 --- a/resources/assets/js/components/Timeline.vue +++ b/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 => { }); },