zar 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/zar.es.js +12 -3
- package/dist/zar.es.js.map +1 -1
- package/dist/zar.iife.js +2 -2
- package/dist/zar.iife.js.map +1 -1
- package/dist/zar.umd.js +2 -2
- package/dist/zar.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/zar.es.js
CHANGED
|
@@ -1812,18 +1812,27 @@ function initPoolDataLayerObserver(apiUrl) {
|
|
|
1812
1812
|
var originalPush = window.zarPoolDataLayer.push;
|
|
1813
1813
|
window.zarPoolDataLayer.push = function(...args) {
|
|
1814
1814
|
var result = originalPush.apply(this, args);
|
|
1815
|
-
var
|
|
1816
|
-
if (!
|
|
1815
|
+
var context2 = drainPoolDataLayer();
|
|
1816
|
+
if (!context2) {
|
|
1817
1817
|
return result;
|
|
1818
1818
|
}
|
|
1819
1819
|
updateTrackingNumberContext({
|
|
1820
1820
|
apiUrl,
|
|
1821
1821
|
poolId: window.zarPoolData.pool_id,
|
|
1822
1822
|
number: window.zarPoolData.number,
|
|
1823
|
-
context
|
|
1823
|
+
context: context2
|
|
1824
1824
|
});
|
|
1825
1825
|
return result;
|
|
1826
1826
|
};
|
|
1827
|
+
var context = drainPoolDataLayer();
|
|
1828
|
+
if (context) {
|
|
1829
|
+
updateTrackingNumberContext({
|
|
1830
|
+
apiUrl,
|
|
1831
|
+
poolId: window.zarPoolData.pool_id,
|
|
1832
|
+
number: window.zarPoolData.number,
|
|
1833
|
+
context
|
|
1834
|
+
});
|
|
1835
|
+
}
|
|
1827
1836
|
window.zarPoolDLObserverDone = true;
|
|
1828
1837
|
}
|
|
1829
1838
|
function initTrackingPool() {
|