Pārlūkot izejas kodu

Update NotificationCard.vue

Daniel Supernault 6 gadi atpakaļ
vecāks
revīzija
d543087bc6
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  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() {