Skip to content

Commit

Permalink
Update dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayFrantsev committed Aug 9, 2021
1 parent ad44104 commit dcecdcf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions dist/audienceproject-data-web.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
_exports.moduleName = moduleName;
var packageName = '@audienceproject/data-web';
_exports.packageName = packageName;
var packageVersion = '1.0.5';
var packageVersion = '1.1.0';
_exports.packageVersion = packageVersion;
var fetchCache = {};
_exports.fetchCache = fetchCache;
Expand Down Expand Up @@ -104,7 +104,8 @@

var getUserOptions = function getUserOptions() {
var key = '__audienceProjectDataFetchOptions=';
var parts = window.location.search.split(/[?&]/);
var parts = window.location.search.split(/[?&]/); // eslint-disable-line compat/compat

var data;
parts.some(function (part) {
var matches = part.indexOf(key) === 0;
Expand Down Expand Up @@ -304,15 +305,15 @@
};

var listenExplicitConsent = function listenExplicitConsent(updatedModel) {
if (updatedModel.tcString) {
if (updatedModel.eventStatus === 'tcloaded' || updatedModel.eventStatus === 'useractioncomplete') {
callTcf('removeEventListener', listenExplicitConsent);
overrideOptions(updatedModel);
resolve();
}
};

var listenResponse = function listenResponse(model) {
if (!options.waitForCmpConsent || !model.gdprApplies || model.tcString) {
if (!options.waitForCmpConsent || !model.gdprApplies || model.eventStatus === 'tcloaded' || model.eventStatus === 'useractioncomplete') {
overrideOptions(model);
resolve();
return;
Expand Down
2 changes: 1 addition & 1 deletion dist/audienceproject-data-web.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dcecdcf

Please sign in to comment.