Skip to content

Commit

Permalink
🏎 [a4a] Scope origin trial querySelector to head (#35391)
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcordry committed Jul 30, 2021
1 parent 5c1b68f commit e51cf8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ads/google/a4a/utils.js
Expand Up @@ -124,7 +124,7 @@ const TOKEN_VALUE =
* @param {!Window} win
*/
export function maybeInsertOriginTrialToken(win) {
if (win.document.querySelector(`meta[content='${TOKEN_VALUE}']`)) {
if (win.document.head.querySelector(`meta[content='${TOKEN_VALUE}']`)) {
return;
}
const metaEl = createElementWithAttributes(win.document, 'meta', {
Expand Down

0 comments on commit e51cf8e

Please sign in to comment.