From 666730f20da44309b0d703fb47ec5dc581939f72 Mon Sep 17 00:00:00 2001 From: Smit Shah Date: Fri, 11 Oct 2024 12:02:24 +0530 Subject: [PATCH] moeenage added --- scripts/delayed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/delayed.js b/scripts/delayed.js index 19f09d95ca..e197e6d06a 100644 --- a/scripts/delayed.js +++ b/scripts/delayed.js @@ -61,7 +61,7 @@ async function loadMoengage(){ var sdkVersion = ''; // Replace this value with the version of Web SDK that you intend to use. It is recommended to use the format x (major); scriptTag.innerHTML = ` - console.log('MoEngage Web SDK v${sdkVersion}'); + console.log('MoEngage Web SDK'); !function(e,n,i,t,a,r,o,d){if(${!moeDataCenter}||${!moeDataCenter}.match(/^dc_[0-9]+$/gm))return console.error("Data center has not been passed correctly. Please follow the SDK installation instruction carefully.");var s=e[a]=e[a]||[];if(s.invoked=0,s.initialised>0||s.invoked>0)return console.error("MoEngage Web SDK initialised multiple times. Please integrate the Web SDK only once!"),!1;e.moengage_object=a;var l={},g=function n(i){return function(){for(var n=arguments.length,t=Array(n),a=0;a1)?(console.error("MoEngage Web SDK initialised multiple times. Please integrate the Web SDK only once!"),!1):(d=arguments.length<=0?void 0:arguments[0],l)},r.addEventListener("load",function(){if(d)return e[a]=e.moe(d),e[a].initialised=e[a].initialised+1||1,!0}),r.addEventListener("error",function(){return console.error("Moengage Web SDK loading failed."),!1})}(window,document,"script","https://cdn.moengage.com/release/${moeDataCenter}/moe_webSdk.min.latest.js","Moengage");`; document.head.append(scriptTag);