Skip to content

Commit 4331ac7

Browse files
Address PR Comments
1 parent 7eaec34 commit 4331ac7

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/Rokt-Kit.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ var constructor = function () {
3030
self.filteredUser = {};
3131
self.userAttributes = {};
3232

33-
self.integrationName = null;
34-
3533
/**
3634
* Passes attributes to the Rokt Web SDK for client-side hashing
3735
* @see https://docs.rokt.com/developers/integration-guides/web/library/integration-launcher#hash-attributes
@@ -64,10 +62,10 @@ var constructor = function () {
6462

6563
var customIntegrationName =
6664
customFlags && customFlags['Rokt.integrationName'];
67-
self.integrationName = generateIntegrationName(customIntegrationName);
65+
var integrationName = generateIntegrationName(customIntegrationName);
6866

6967
if (testMode) {
70-
attachLauncher(accountId, self.integrationName);
68+
attachLauncher(accountId, integrationName);
7169
return;
7270
}
7371

@@ -88,7 +86,7 @@ var constructor = function () {
8886
typeof window.Rokt.createLauncher === 'function' &&
8987
window.Rokt.currentLauncher === undefined
9088
) {
91-
attachLauncher(accountId, self.integrationName);
89+
attachLauncher(accountId, integrationName);
9290
} else {
9391
console.error(
9492
'Rokt object is not available after script load.'

0 commit comments

Comments
 (0)