@mparticle/web-rokt-kit 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Rokt-Kit.common.js +6 -8
- package/dist/Rokt-Kit.iife.js +6 -8
- package/package.json +1 -1
package/dist/Rokt-Kit.common.js
CHANGED
|
@@ -36,18 +36,17 @@ var constructor = function () {
|
|
|
36
36
|
|
|
37
37
|
function initForwarder(
|
|
38
38
|
settings,
|
|
39
|
-
|
|
39
|
+
_service,
|
|
40
40
|
testMode,
|
|
41
|
-
|
|
41
|
+
_trackerId,
|
|
42
42
|
filteredUserAttributes
|
|
43
43
|
) {
|
|
44
44
|
var accountId = settings.accountId;
|
|
45
|
-
var sandboxMode = window.mParticle.getEnvironment() === 'development';
|
|
46
45
|
self.userAttributes = filteredUserAttributes;
|
|
47
46
|
self.onboardingExpProvider = settings.onboardingExpProvider;
|
|
48
47
|
|
|
49
48
|
if (testMode) {
|
|
50
|
-
attachLauncher(accountId
|
|
49
|
+
attachLauncher(accountId);
|
|
51
50
|
return;
|
|
52
51
|
}
|
|
53
52
|
|
|
@@ -68,7 +67,7 @@ var constructor = function () {
|
|
|
68
67
|
typeof window.Rokt.createLauncher === 'function' &&
|
|
69
68
|
window.Rokt.currentLauncher === undefined
|
|
70
69
|
) {
|
|
71
|
-
attachLauncher(accountId
|
|
70
|
+
attachLauncher(accountId);
|
|
72
71
|
} else {
|
|
73
72
|
console.error(
|
|
74
73
|
'Rokt object is not available after script load.'
|
|
@@ -155,16 +154,15 @@ var constructor = function () {
|
|
|
155
154
|
delete self.userAttributes[key];
|
|
156
155
|
}
|
|
157
156
|
|
|
158
|
-
function attachLauncher(accountId
|
|
157
|
+
function attachLauncher(accountId) {
|
|
159
158
|
window.Rokt.createLauncher({
|
|
160
159
|
accountId: accountId,
|
|
161
|
-
sandbox: sandboxMode,
|
|
162
160
|
integrationName:
|
|
163
161
|
'mParticle_' +
|
|
164
162
|
'wsdkv_' +
|
|
165
163
|
window.mParticle.getVersion() +
|
|
166
164
|
'_kitv_' +
|
|
167
|
-
"1.2.
|
|
165
|
+
"1.2.1",
|
|
168
166
|
})
|
|
169
167
|
.then(function (launcher) {
|
|
170
168
|
// Assign the launcher to a global variable for later access
|
package/dist/Rokt-Kit.iife.js
CHANGED
|
@@ -35,18 +35,17 @@ var RoktKit = (function (exports) {
|
|
|
35
35
|
|
|
36
36
|
function initForwarder(
|
|
37
37
|
settings,
|
|
38
|
-
|
|
38
|
+
_service,
|
|
39
39
|
testMode,
|
|
40
|
-
|
|
40
|
+
_trackerId,
|
|
41
41
|
filteredUserAttributes
|
|
42
42
|
) {
|
|
43
43
|
var accountId = settings.accountId;
|
|
44
|
-
var sandboxMode = window.mParticle.getEnvironment() === 'development';
|
|
45
44
|
self.userAttributes = filteredUserAttributes;
|
|
46
45
|
self.onboardingExpProvider = settings.onboardingExpProvider;
|
|
47
46
|
|
|
48
47
|
if (testMode) {
|
|
49
|
-
attachLauncher(accountId
|
|
48
|
+
attachLauncher(accountId);
|
|
50
49
|
return;
|
|
51
50
|
}
|
|
52
51
|
|
|
@@ -67,7 +66,7 @@ var RoktKit = (function (exports) {
|
|
|
67
66
|
typeof window.Rokt.createLauncher === 'function' &&
|
|
68
67
|
window.Rokt.currentLauncher === undefined
|
|
69
68
|
) {
|
|
70
|
-
attachLauncher(accountId
|
|
69
|
+
attachLauncher(accountId);
|
|
71
70
|
} else {
|
|
72
71
|
console.error(
|
|
73
72
|
'Rokt object is not available after script load.'
|
|
@@ -154,16 +153,15 @@ var RoktKit = (function (exports) {
|
|
|
154
153
|
delete self.userAttributes[key];
|
|
155
154
|
}
|
|
156
155
|
|
|
157
|
-
function attachLauncher(accountId
|
|
156
|
+
function attachLauncher(accountId) {
|
|
158
157
|
window.Rokt.createLauncher({
|
|
159
158
|
accountId: accountId,
|
|
160
|
-
sandbox: sandboxMode,
|
|
161
159
|
integrationName:
|
|
162
160
|
'mParticle_' +
|
|
163
161
|
'wsdkv_' +
|
|
164
162
|
window.mParticle.getVersion() +
|
|
165
163
|
'_kitv_' +
|
|
166
|
-
"1.2.
|
|
164
|
+
"1.2.1",
|
|
167
165
|
})
|
|
168
166
|
.then(function (launcher) {
|
|
169
167
|
// Assign the launcher to a global variable for later access
|