Skip to content

Commit d3be7e3

Browse files
committed
fixed some smaller issues with the new handleGetParameters (in SNAPSHOT)
1 parent c1fcbdf commit d3be7e3

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

dist/breinify-api.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13416,12 +13416,14 @@ dependencyScope.jQuery = $;;
1341613416
handleGetParameters: function () {
1341713417
var knownParams = {
1341813418
'brec': {
13419-
'type': 'clickedRecommendation'
13419+
'activity': {
13420+
'type': 'clickedRecommendation'
13421+
}
1342013422
}
1342113423
};
1342213424

1342313425
var result = {};
13424-
var params = BreinifyUtil.params();
13426+
var params = BreinifyUtil.loc.params();
1342513427

1342613428
// check for known types
1342713429
for (var knownParam in knownParams) {
@@ -13466,13 +13468,13 @@ dependencyScope.jQuery = $;;
1346613468
*/
1346713469
var user = combinedValue.user;
1346813470
var activity = combinedValue.activity;
13469-
Breinify.activity(user, activity.type, activity.category, activity.description, activity.tags);
13471+
Breinify.activity(user, activity.type, activity.category, activity.description, activity.tags, null, null);
1347013472
}
1347113473
},
1347213474

1347313475
parseGetParameter: function (name, value) {
1347413476
try {
13475-
return JSON.parse(atob(value));
13477+
return JSON.parse(atob(decodeURIComponent(value)));
1347613478
} catch (e) {
1347713479
return null;
1347813480
}

0 commit comments

Comments
 (0)