Skip to content

Commit

Permalink
small update to usersync to follow-up prebid#4928 (prebid#4942)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnellbaker authored and rjvelicaria committed Apr 9, 2020
1 parent 09cb3c4 commit 6c713ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/userSync.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ export function newUserSync(userSyncDependencies) {
let usConfig = userSyncDependencies.config;
// Update if it's (re)set
config.getConfig('userSync', (conf) => {
// if userSync.filterSettings only contains iframe, merge in default image config to ensure image pixels are fired
// Added this logic for https://github.com/prebid/Prebid.js/issues/4864
// if userSync.filterSettings does not contain image/all configs, merge in default image config to ensure image pixels are fired
if (conf.userSync) {
let fs = conf.userSync.filterSettings;
if (utils.isPlainObject(fs)) {
let fsKeys = Object.keys(fs);
if (fsKeys.length === 1 && fsKeys[0] === 'iframe') {
if (!fs.image && !fs.all) {
conf.userSync.filterSettings.image = {
bidders: '*',
filter: 'include'
Expand Down

0 comments on commit 6c713ec

Please sign in to comment.