Преглед изворни кода

Update NotificationCard.vue

Daniel Supernault пре 6 година
родитељ
комит
d543087bc6
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      resources/assets/js/components/NotificationCard.vue

+ 3 - 1
resources/assets/js/components/NotificationCard.vue

@@ -70,7 +70,9 @@
 		},
 
 		mounted() {
-			this.fetchNotifications();
+			if(window.outerWidth > 767) {
+				this.fetchNotifications();
+			}
 		},
 
 		updated() {