Skip to content

Commit

Permalink
Fix attribution-reporting browser support detection (#38678)
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcordry authored Feb 17, 2023
1 parent e56bfee commit 767b9ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extensions/amp-ad-exit/0.1/amp-ad-exit.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ export class AmpAdExit extends AMP.BaseElement {
* @return {boolean}
*/
detectAttributionReportingSupport() {
return isAttributionReportingAllowed(this.win);
return isAttributionReportingAllowed(this.win.document);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/pixel.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function createImagePixel(win, src, noReferrer = false, attributionSrc) {
image.referrerPolicy = 'no-referrer';
}
image.src = src;
if (isAttributionReportingAllowed(win)) {
if (isAttributionReportingAllowed(win.document)) {
image.attributionsrc = attributionSrc;
}
return image;
Expand Down

0 comments on commit 767b9ce

Please sign in to comment.