Skip to content

Commit

Permalink
Core: set string for regs.ext.gpc (prebid#12436)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgirardi authored Nov 12, 2024
1 parent e16c01f commit 112beee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fpd/enrichment.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const ENRICHMENTS = {
regs() {
const regs = {};
if (winFallback((win) => win.navigator.globalPrivacyControl)) {
deepSetValue(regs, 'ext.gpc', 1);
deepSetValue(regs, 'ext.gpc', '1');
}
const coppa = config.getConfig('coppa');
if (typeof coppa === 'boolean') {
Expand Down
2 changes: 1 addition & 1 deletion test/spec/fpd/enrichment_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ describe('FPD enrichment', () => {
it('is set if globalPrivacyControl is set', () => {
win.navigator.globalPrivacyControl = true;
return fpd().then(ortb2 => {
expect(ortb2.regs.ext.gpc).to.eql(1);
expect(ortb2.regs.ext.gpc).to.eql('1');
});
});

Expand Down

0 comments on commit 112beee

Please sign in to comment.