Skip to content

Commit e91be0e

Browse files
committed
fix bug in AmxBidAdapter userSync settings handling
A bitwise `&` was being used instead of the intended `|`.
1 parent b35fe2c commit e91be0e

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

modules/amxBidAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ function getSyncSettings() {
251251
const all = isSyncEnabled(syncConfig.filterSettings, 'all');
252252

253253
if (all) {
254-
settings.t = SYNC_IMAGE & SYNC_IFRAME;
254+
settings.t = SYNC_IMAGE | SYNC_IFRAME;
255255
return settings;
256256
}
257257

test/spec/modules/amxBidAdapter_spec.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,23 @@ describe('AmxBidAdapter', () => {
401401
},
402402
{ ...base, t: 3 },
403403
],
404+
[
405+
{
406+
all: {
407+
bidders: ['amx'],
408+
},
409+
},
410+
{ ...base, t: 3 },
411+
],
412+
[
413+
{
414+
all: {
415+
bidders: '*',
416+
filter: 'include',
417+
},
418+
},
419+
{ ...base, t: 3 },
420+
],
404421
[
405422
{
406423
image: {

0 commit comments

Comments
 (0)