Skip to content

Commit 58f8ae5

Browse files
authored
fix: Remove sandbox mode on rokt kit (#22)
1 parent 2901258 commit 58f8ae5

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
@@ -32,18 +32,17 @@ var constructor = function () {
3232

3333
function initForwarder(
3434
settings,
35-
service,
35+
_service,
3636
testMode,
37-
trackerId,
37+
_trackerId,
3838
filteredUserAttributes
3939
) {
4040
var accountId = settings.accountId;
41-
var sandboxMode = window.mParticle.getEnvironment() === 'development';
4241
self.userAttributes = filteredUserAttributes;
4342
self.onboardingExpProvider = settings.onboardingExpProvider;
4443

4544
if (testMode) {
46-
attachLauncher(accountId, sandboxMode);
45+
attachLauncher(accountId);
4746
return;
4847
}
4948

@@ -64,7 +63,7 @@ var constructor = function () {
6463
typeof window.Rokt.createLauncher === 'function' &&
6564
window.Rokt.currentLauncher === undefined
6665
) {
67-
attachLauncher(accountId, sandboxMode);
66+
attachLauncher(accountId);
6867
} else {
6968
console.error(
7069
'Rokt object is not available after script load.'
@@ -151,10 +150,9 @@ var constructor = function () {
151150
delete self.userAttributes[key];
152151
}
153152

154-
function attachLauncher(accountId, sandboxMode) {
153+
function attachLauncher(accountId) {
155154
window.Rokt.createLauncher({
156155
accountId: accountId,
157-
sandbox: sandboxMode,
158156
integrationName:
159157
'mParticle_' +
160158
'wsdkv_' +

0 commit comments

Comments
 (0)