@blotoutio/edgetag-sdk-browser 0.36.0 → 0.36.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/index.js +15 -13
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -336,7 +336,7 @@
|
|
|
336
336
|
referrer: getReferrer(),
|
|
337
337
|
search: getSearch(),
|
|
338
338
|
locale: getLocale(),
|
|
339
|
-
sdkVersion: "0.36.
|
|
339
|
+
sdkVersion: "0.36.1" ,
|
|
340
340
|
...(payload || {}),
|
|
341
341
|
};
|
|
342
342
|
let storage = {};
|
|
@@ -902,18 +902,20 @@
|
|
|
902
902
|
}
|
|
903
903
|
});
|
|
904
904
|
}
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
905
|
+
if (pkg && pkg.name && pkg.init) {
|
|
906
|
+
/* this defines if the consent is given for a specific instance of a provider */
|
|
907
|
+
const hasConsent = hasUserConsent(consent, pkg.name, provider.tagName);
|
|
908
|
+
if (hasConsent) {
|
|
909
|
+
pkg.init({
|
|
910
|
+
userId,
|
|
911
|
+
manifest: provider,
|
|
912
|
+
sendTag,
|
|
913
|
+
sendEdgeData: handleData,
|
|
914
|
+
getEdgeData: handleGetData,
|
|
915
|
+
keyName: `${keyPrefix}Store`,
|
|
916
|
+
executionContext,
|
|
917
|
+
});
|
|
918
|
+
}
|
|
917
919
|
}
|
|
918
920
|
});
|
|
919
921
|
setInitialized();
|