Przeglądaj źródła

fix(initAnalytics): Add catch.

master
Hristo Terezov 7 lat temu
rodzic
commit
c2b2b4eba4
1 zmienionych plików z 5 dodań i 2 usunięć
  1. 5
    2
      react/features/analytics/functions.js

+ 5
- 2
react/features/analytics/functions.js Wyświetl plik

91
 
91
 
92
             // Set the handlers last, since this triggers emptying of the cache
92
             // Set the handlers last, since this triggers emptying of the cache
93
             analytics.setAnalyticsHandlers(handlers);
93
             analytics.setAnalyticsHandlers(handlers);
94
-        },
95
-        error => analytics.dispose() && logger.error(error));
94
+        })
95
+        .catch(error => {
96
+            analytics.dispose();
97
+            logger.error(error);
98
+        });
96
 }
99
 }
97
 
100
 
98
 /**
101
 /**

Ładowanie…
Anuluj
Zapisz