Skip to content

Commit 6a8b7e5

Browse files
committed
branch vwointegration:update/vwo-smartcode-v2.1
1 parent 7701f09 commit 6a8b7e5

File tree

1 file changed

+3
-2
lines changed
  • integrations/visual-website-optimizer/lib

1 file changed

+3
-2
lines changed

integrations/visual-website-optimizer/lib/index.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,11 @@ var integrationContext = {
4747
VWO.prototype.initialize = function() {
4848
if (this.options.useAsyncSmartCode) {
4949
/* eslint-disable */
50+
var options = this.options;
5051
window._vwo_code || (function() {
51-
var account_id=this.options.accountId,
52+
var account_id=options.accountId,
5253
version=2.1,
53-
settings_tolerance=this.options.settingsTolerance,
54+
settings_tolerance=options.settingsTolerance,
5455
hide_element='body',
5556
/* The VWO SmartCode v2.1 script when it gets executed auto-detects (detecting first-contentful-paint Ref: [PerformancePaintTiming - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/PerformancePaintTiming)) if the page is already loaded then it prevents the page (body) from hiding from it. */
5657
hide_element_style = 'opacity:0 !important;filter:alpha(opacity=0) !important;background:none !important;transition:none !important;',

0 commit comments

Comments
 (0)