ソースを参照

fix(initAnalytics): Add catch.

master
Hristo Terezov 7年前
コミット
c2b2b4eba4
1個のファイルの変更5行の追加2行の削除
  1. 5
    2
      react/features/analytics/functions.js

+ 5
- 2
react/features/analytics/functions.js ファイルの表示

@@ -91,8 +91,11 @@ export function initAnalytics({ getState }: { getState: Function }) {
91 91
 
92 92
             // Set the handlers last, since this triggers emptying of the cache
93 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
 /**

読み込み中…
キャンセル
保存