Skip to content

Commit

Permalink
RVR-2087 - Add addons check
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessandroDG committed Dec 5, 2018
1 parent 970dc93 commit 1fb91d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/rivrAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ rivrAnalytics.originEnableAnalytics = rivrAnalytics.enableAnalytics;

// override enableAnalytics so we can get access to the config passed in from the page
rivrAnalytics.enableAnalytics = (config) => {
window.rivraddon.analytics.enableAnalytics(config, ExpiringQueue, {utils, ajax, find});
rivrAnalytics.originEnableAnalytics(config);
if (window.rivraddon && window.rivraddon.analytics) {
window.rivraddon.analytics.enableAnalytics(config, ExpiringQueue, {utils, ajax, find});
rivrAnalytics.originEnableAnalytics(config);
}
};

adaptermanager.registerAnalyticsAdapter({
Expand Down

0 comments on commit 1fb91d9

Please sign in to comment.