From 3252c164ca88670b6af8bfce4eee11e46854f640 Mon Sep 17 00:00:00 2001 From: Ankit Gupta Date: Tue, 17 Dec 2024 12:11:54 +0530 Subject: [PATCH] Updated body opacity 1 and upgraded vwo version --- integrations/visual-website-optimizer/lib/index.js | 2 +- integrations/visual-website-optimizer/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/integrations/visual-website-optimizer/lib/index.js b/integrations/visual-website-optimizer/lib/index.js index f8497f817..ba9a12eda 100644 --- a/integrations/visual-website-optimizer/lib/index.js +++ b/integrations/visual-website-optimizer/lib/index.js @@ -52,7 +52,7 @@ VWO.prototype.initialize = function() { var library_tolerance = this.options.libraryTolerance; var use_existing_jquery = this.options.useExistingJQuery; var isSPA = this.options.isSpa; - window._vwo_code=(function(){f=false,d=document;return{use_existing_jquery:function(){return use_existing_jquery;},library_tolerance:function(){return library_tolerance;},finish:function(){if(!f){f=true;var a=d.getElementById('_vis_opt_path_hides');if(a)a.parentNode.removeChild(a);}},finished:function(){return f;},load:function(a){var b=d.createElement('script');b.src=a;b.type='text/javascript';b.innerText;b.onerror=function(){_vwo_code.finish();};d.getElementsByTagName('head')[0].appendChild(b);},init:function(){settings_timer=setTimeout('_vwo_code.finish()',settings_tolerance);var a=d.createElement('style'),b='body{opacity:0 !important;filter:alpha(opacity=0) !important;background:none !important;}',h=d.getElementsByTagName('head')[0];a.setAttribute('id','_vis_opt_path_hides');a.setAttribute('type','text/css');if(a.styleSheet)a.styleSheet.cssText=b;else a.appendChild(d.createTextNode(b));h.appendChild(a);this.load('//dev.visualwebsiteoptimizer.com/j.php?a='+account_id+'&u='+encodeURIComponent(d.URL)+'&r='+Math.random()+'&f='+(+isSPA));return settings_timer;}};}());_vwo_settings_timer=_vwo_code.init(); + window._vwo_code=(function(){f=false,d=document;return{use_existing_jquery:function(){return use_existing_jquery;},library_tolerance:function(){return library_tolerance;},finish:function(){if(!f){f=true;var a=d.getElementById('_vis_opt_path_hides');if(a)a.parentNode.removeChild(a);}},finished:function(){return f;},load:function(a){var b=d.createElement('script');b.src=a;b.type='text/javascript';b.innerText;b.onerror=function(){_vwo_code.finish();};d.getElementsByTagName('head')[0].appendChild(b);},init:function(){settings_timer=setTimeout('_vwo_code.finish()',settings_tolerance);var a=d.createElement('style'),b='body{opacity:1 !important;filter:none !important;background:none !important;}',h=d.getElementsByTagName('head')[0];a.setAttribute('id','_vis_opt_path_hides');a.setAttribute('type','text/css');if(a.styleSheet)a.styleSheet.cssText=b;else a.appendChild(d.createTextNode(b));h.appendChild(a);this.load('//dev.visualwebsiteoptimizer.com/j.php?a='+account_id+'&u='+encodeURIComponent(d.URL)+'&r='+Math.random()+'&f='+(+isSPA));return settings_timer;}};}());_vwo_settings_timer=_vwo_code.init(); /* eslint-enable */ } diff --git a/integrations/visual-website-optimizer/package.json b/integrations/visual-website-optimizer/package.json index a5def161b..c857a8d3a 100644 --- a/integrations/visual-website-optimizer/package.json +++ b/integrations/visual-website-optimizer/package.json @@ -1,7 +1,7 @@ { "name": "@segment/analytics.js-integration-visual-website-optimizer", "description": "The Visual Website Optimizer analytics.js integration.", - "version": "2.4.6", + "version": "2.4.7", "keywords": [ "analytics.js", "analytics.js-integration",