@@ -53,29 +53,22 @@ var RoktKit = (function (exports) {
5353 _service ,
5454 testMode ,
5555 _trackerId ,
56- filteredUserAttributes ,
57- filteredUserIdentities ,
58- appVersion ,
59- appName ,
60- customFlags
56+ filteredUserAttributes
6157 ) {
6258 var accountId = settings . accountId ;
6359 self . userAttributes = filteredUserAttributes ;
6460 self . onboardingExpProvider = settings . onboardingExpProvider ;
6561
66- var integrationName =
67- customFlags && customFlags [ 'Rokt.integrationName' ] ;
68- var noFunctional = customFlags && customFlags [ 'Rokt.noFunctional' ] ;
69- var noTargeting = customFlags && customFlags [ 'Rokt.noTargeting' ] ;
62+ var managerOptions = window . mParticle . Rokt . managerOptions || { } ;
63+ var sandbox = managerOptions . sandbox || false ;
7064
71- var launcherOptions = {
72- integrationName : generateIntegrationName ( integrationName ) ,
73- noFunctional : noFunctional ,
74- noTargeting : noTargeting ,
75- } ;
65+ var launcherOptions = window . mParticle . Rokt . launcherOptions || { } ;
66+ launcherOptions . integrationName = generateIntegrationName (
67+ launcherOptions . integrationName
68+ ) ;
7669
7770 if ( testMode ) {
78- attachLauncher ( accountId , launcherOptions ) ;
71+ attachLauncher ( accountId , sandbox , launcherOptions ) ;
7972 return ;
8073 }
8174
@@ -96,7 +89,7 @@ var RoktKit = (function (exports) {
9689 typeof window . Rokt . createLauncher === 'function' &&
9790 window . Rokt . currentLauncher === undefined
9891 ) {
99- attachLauncher ( accountId , launcherOptions ) ;
92+ attachLauncher ( accountId , sandbox , launcherOptions ) ;
10093 } else {
10194 console . error (
10295 'Rokt object is not available after script load.'
@@ -186,9 +179,12 @@ var RoktKit = (function (exports) {
186179 delete self . userAttributes [ key ] ;
187180 }
188181
189- function attachLauncher ( accountId , launcherOptions ) {
182+ function attachLauncher ( accountId , sandbox , launcherOptions ) {
190183 var options = mergeObjects (
191- { accountId : accountId } ,
184+ {
185+ accountId : accountId ,
186+ sandbox : sandbox ,
187+ } ,
192188 launcherOptions || { }
193189 ) ;
194190
@@ -291,7 +287,7 @@ var RoktKit = (function (exports) {
291287
292288 function generateIntegrationName ( customIntegrationName ) {
293289 var coreSdkVersion = window . mParticle . getVersion ( ) ;
294- var kitVersion = "1.3.2 " ;
290+ var kitVersion = "1.4.0 " ;
295291 var name = 'mParticle_' + 'wsdkv_' + coreSdkVersion + '_kitv_' + kitVersion ;
296292
297293 if ( customIntegrationName ) {
0 commit comments