Skip to content

Commit a1aee55

Browse files
committed
Fix error if native bridge is not available
Fixes aksonov#73
1 parent 1fa3614 commit a1aee55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ export {
1515
* Versions bellow 3.1.0 used static GoogleAnalytics class.
1616
* This exported instance makes sure older implementations work.
1717
*/
18-
export default new GoogleAnalyticsBackwardsCompability(GoogleAnalyticsBridge.nativeTrackerId);
18+
export default new GoogleAnalyticsBackwardsCompability(GoogleAnalyticsBridge ? GoogleAnalyticsBridge.nativeTrackerId : null);

0 commit comments

Comments
 (0)