Skip to content

Commit 7eaec34

Browse files
Clean up code
1 parent 9bf647f commit 7eaec34

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

src/Rokt-Kit.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ var constructor = function () {
6262
self.userAttributes = filteredUserAttributes;
6363
self.onboardingExpProvider = settings.onboardingExpProvider;
6464

65-
var customIntegrationName = customFlags && customFlags['Rokt.integrationName'];
65+
var customIntegrationName =
66+
customFlags && customFlags['Rokt.integrationName'];
6667
self.integrationName = generateIntegrationName(customIntegrationName);
6768

6869
if (testMode) {
@@ -279,12 +280,9 @@ var constructor = function () {
279280
};
280281

281282
function generateIntegrationName(customIntegrationName) {
282-
var name =
283-
'mParticle_' +
284-
'wsdkv_' +
285-
window.mParticle.getVersion() +
286-
'_kitv_' +
287-
process.env.PACKAGE_VERSION;
283+
var coreSdkVersion = window.mParticle.getVersion();
284+
var kitVersion = process.env.PACKAGE_VERSION;
285+
var name = 'mParticle_' + 'wsdkv_' + coreSdkVersion + '_kitv_' + kitVersion;
288286

289287
if (customIntegrationName) {
290288
name += '_' + customIntegrationName;

0 commit comments

Comments
 (0)