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);