diff --git a/package.json b/package.json index 007bb8e..76f0611 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "digital-data-manager", "description": "The hassle-free way to integrate Digital Data Layer on your website.", "author": "Driveback LLC ", - "version": "1.2.31", + "version": "1.2.32", "license": "MIT", "main": "dist/dd-manager.js", "scripts": { diff --git a/src/ddManager.js b/src/ddManager.js index 74a21cc..da4f282 100644 --- a/src/ddManager.js +++ b/src/ddManager.js @@ -241,7 +241,7 @@ function _initializeIntegrations(settings) { ddManager = { - VERSION: '1.2.31', + VERSION: '1.2.32', setAvailableIntegrations: (availableIntegrations) => { _availableIntegrations = availableIntegrations; diff --git a/src/trackers/trackImpression.js b/src/trackers/trackImpression.js index ab3622d..93cc9a2 100644 --- a/src/trackers/trackImpression.js +++ b/src/trackers/trackImpression.js @@ -3,8 +3,8 @@ import getStyle from './../functions/getStyle'; import domQuery from './../functions/domQuery'; class Batch { - constructor(blocks, handler) { - this.blocks = blocks; + constructor(handler) { + this.blocks = []; this.viewedBlocks = []; this.handler = handler; }