Skip to content

Commit 50b1e06

Browse files
authored
Merge branch 'develop' into feature/getVariableCategoryName
2 parents adf83bf + 3750bb4 commit 50b1e06

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed

.idea/dictionaries/m.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/js/qmHelpers.js

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9002,25 +9002,28 @@ var qm = {
90029002
name: user.displayName,
90039003
})
90049004
}
9005-
if(typeof LogRocket !== "undefined" && qm.appMode.isProduction()){
9006-
LogRocket.init('zi2x4l/quantimodo');
9007-
LogRocket.identify(user.id, {
9008-
name: user.displayName,
9009-
email: user.email,
9010-
upgraded: user.stripeActive,
9011-
// Add your own custom user variables here, ie:
9012-
subscriptionType: 'pro'
9013-
});
9014-
if(typeof drift !== "undefined"){
9015-
LogRocket.getSessionURL(function(sessionURL){
9016-
drift.track('LogRocket', {sessionURL: sessionURL});
9005+
if(typeof LogRocket !== "undefined"){
9006+
var record = qm.appMode.isProduction() || qm.urlHelper.getParam('logrocket');
9007+
if(record){
9008+
LogRocket.init('zi2x4l/quantimodo');
9009+
LogRocket.identify(user.id, {
9010+
name: user.displayName,
9011+
email: user.email,
9012+
upgraded: user.stripeActive,
9013+
// Add your own custom user variables here, ie:
9014+
subscriptionType: 'pro'
90179015
});
9018-
}
9019-
if(typeof Bugsnag !== "undefined"){
9020-
Bugsnag.beforeNotify = function(data){
9021-
data.metaData.sessionURL = LogRocket.sessionURL;
9022-
return data;
9023-
};
9016+
if(typeof drift !== "undefined"){
9017+
LogRocket.getSessionURL(function(sessionURL){
9018+
drift.track('LogRocket', {sessionURL: sessionURL});
9019+
});
9020+
}
9021+
if(typeof Bugsnag !== "undefined"){
9022+
Bugsnag.beforeNotify = function(data){
9023+
data.metaData.sessionURL = LogRocket.sessionURL;
9024+
return data;
9025+
};
9026+
}
90249027
}
90259028
}
90269029
},

0 commit comments

Comments
 (0)