Skip to content

Commit

Permalink
Fix explicit window use.
Browse files Browse the repository at this point in the history
  • Loading branch information
from20020516 committed Feb 2, 2022
1 parent f160c42 commit 1cdc106
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/fluctAnalyticsAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ let fluctAnalyticsAdapter = Object.assign(
* }
* ```
*/
const getAdUnitMap = () => window.googletag.pubads().getSlots().reduce((prev, slot) => Object.assign(prev, { [slot.getSlotElementId()]: slot.getAdUnitPath() }), {})
// eslint-disable-next-line no-undef
const getAdUnitMap = () => googletag.pubads().getSlots().reduce((prev, slot) => Object.assign(prev, { [slot.getSlotElementId()]: slot.getAdUnitPath() }), {})

/** @type {(adUnits: AdUnit[], slots: Slots) => AdUnit[]} */
export const convertReplicatedAdUnits = (adUnits, slots) =>
Expand Down

0 comments on commit 1cdc106

Please sign in to comment.