Skip to content

Commit

Permalink
Merge pull request #16 from GoogleChromeLabs/chain-op
Browse files Browse the repository at this point in the history
Add an optional chaining operator
  • Loading branch information
kevinkiklee authored Dec 13, 2023
2 parents 8748fc6 + 58c036f commit 581bb5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions functions/view/home/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
<li>
Visit the <code>chrome://flags</code> page and enable the "Privacy Sandbox Ads APIs" flags from the UI.
</li>
<li>
If you are using Chrome M118+, execute Chrome from the command line and set the flag <code>--args --disable-features=EnforcePrivacySandboxAttestations</code> to disable attestation.
</li>
<li>
Visit the
<a href='{{{advertiserUrl}}}' target='_blank'>advertiser page</a> which will add your browser to an interest group.
Expand Down
4 changes: 2 additions & 2 deletions sites/dsp/bid.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ function generateBid(interestGroup, auctionSignals, perBuyerSignals, trustedBidd
return {
bid: 1, // Arbitrary bid value
ad: {
adName: testAd.metadata.adName,
adName: testAd?.metadata?.adName,
},
render: testAd.renderUrl,
render: testAd?.renderUrl,
};
}

Expand Down

0 comments on commit 581bb5d

Please sign in to comment.