Parcourir la source

Update NotificationCard.vue

Daniel Supernault il y a 6 ans
Parent
commit
d543087bc6
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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() {