Skip to content

Commit

Permalink
Fix error if native bridge is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrevik committed Nov 19, 2016
1 parent 1fa3614 commit a1aee55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ export {
* Versions bellow 3.1.0 used static GoogleAnalytics class.
* This exported instance makes sure older implementations work.
*/
export default new GoogleAnalyticsBackwardsCompability(GoogleAnalyticsBridge.nativeTrackerId);
export default new GoogleAnalyticsBackwardsCompability(GoogleAnalyticsBridge ? GoogleAnalyticsBridge.nativeTrackerId : null);

0 comments on commit a1aee55

Please sign in to comment.