diff --git a/dist/RoktWsdk-Kit.common.js b/dist/RoktWsdk-Kit.common.js index 8e1c2ec..3b0e7a6 100644 --- a/dist/RoktWsdk-Kit.common.js +++ b/dist/RoktWsdk-Kit.common.js @@ -218,6 +218,9 @@ var initialization = { .then(function (launcher) { // Assign the launcher to a global variable for later access window.Rokt.currentLauncher = launcher; + window.dispatchEvent( + new Event('rokt-launcher-created') + ); if (window['Rokt'] && eventQueue.length > 0) { for ( var i = 0; diff --git a/dist/RoktWsdk-Kit.iife.js b/dist/RoktWsdk-Kit.iife.js index b01e21b..8866281 100644 --- a/dist/RoktWsdk-Kit.iife.js +++ b/dist/RoktWsdk-Kit.iife.js @@ -217,6 +217,9 @@ var RoktWsdkKit = (function (exports) { .then(function (launcher) { // Assign the launcher to a global variable for later access window.Rokt.currentLauncher = launcher; + window.dispatchEvent( + new Event('rokt-launcher-created') + ); if (window['Rokt'] && eventQueue.length > 0) { for ( var i = 0; diff --git a/package-lock.json b/package-lock.json index c6fe508..00f003f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@mparticle/web-rokt-wsdk-kit", - "version": "0.0.1", + "version": "0.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@mparticle/web-rokt-wsdk-kit", - "version": "0.0.1", + "version": "0.0.2", "license": "Apache-2.0", "dependencies": { "@mparticle/web-sdk": "^2.20.0" diff --git a/package.json b/package.json index 3193a30..45f3ed7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mparticle/web-rokt-wsdk-kit", - "version": "0.0.1", + "version": "0.0.2", "main": "dist/RoktWsdk-Kit.common.js", "files": [ "dist/RoktWsdk-Kit.common.js" @@ -46,4 +46,4 @@ "@mparticle/web-sdk": "^2.20.0" }, "license": "Apache-2.0" -} \ No newline at end of file +} diff --git a/src/initialization.js b/src/initialization.js index bd9eb4d..bac63bc 100644 --- a/src/initialization.js +++ b/src/initialization.js @@ -1,7 +1,7 @@ var roktLauncherScript = 'https://apps.rokt.com/wsdk/integrations/launcher.js'; var initialization = { - name: 'RoktWsdk', + name: 'Rokt', moduleId: 181, /* ****** Fill out initForwarder to load your SDK ****** Note that not all arguments may apply to your SDK initialization. @@ -50,6 +50,9 @@ var initialization = { .then(function (launcher) { // Assign the launcher to a global variable for later access window.Rokt.currentLauncher = launcher; + window.dispatchEvent( + new Event('rokt-launcher-created') + ); if (window['Rokt'] && eventQueue.length > 0) { for ( var i = 0;