@schibsted/niche-tracking
Advanced tools
Comparing version 4.6.7 to 4.6.8
@@ -143,2 +143,3 @@ import { eventTarget } from '@schibsted/niche-utils'; | ||
if (!this._enabled) { | ||
this._initialized = true; | ||
return Promise.resolve(); | ||
@@ -153,3 +154,2 @@ } | ||
this.initialized = true; | ||
this.eventTarget.dispatchEvent(new Event('initialized')); | ||
while (this._queue.length) { | ||
@@ -156,0 +156,0 @@ const queuedJob = this._queue.shift(); |
{ | ||
"name": "@schibsted/niche-tracking", | ||
"version": "4.6.7", | ||
"version": "4.6.8", | ||
"description": "Package containing tracking logic reused between multiple Schibsted niche sites", | ||
@@ -26,3 +26,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "ae51183e8bb79ff2bd5bcbf30510a8e0fe8ed643" | ||
"gitHead": "14eeb683631c309d243151af24e55eda749a54ad" | ||
} |
@@ -204,2 +204,4 @@ import { eventTarget } from '@schibsted/niche-utils'; | ||
if (!this._enabled) { | ||
this._initialized = true; | ||
return Promise.resolve(); | ||
@@ -222,3 +224,2 @@ } | ||
this.initialized = true; | ||
this.eventTarget.dispatchEvent(new Event('initialized')); | ||
@@ -225,0 +226,0 @@ while (this._queue.length) { |
69252