From b3769608b3cd575b414ac17d7e422703a483f319 Mon Sep 17 00:00:00 2001 From: Dave Vandyke Date: Mon, 27 Nov 2023 17:22:15 +0000 Subject: [PATCH] Add missing AdRequest.omidAccessModeRules property in google-ima.js It turns out that an AdRequest class should have an omidAccessModeRules[1] Object property. Some websites broke when trying to access the missing property. 1 - https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdsRequest#omidAccessModeRules --- surrogates/google-ima.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/surrogates/google-ima.js b/surrogates/google-ima.js index 90e8c38..2ce62d3 100644 --- a/surrogates/google-ima.js +++ b/surrogates/google-ima.js @@ -471,6 +471,9 @@ if (!window.google || !window.google.ima || !window.google.ima.VERSION) { class AdsRenderingSettings {} class AdsRequest { + constructor() { + this.omidAccessModeRules = {}; + } setAdWillAutoPlay() {} setAdWillPlayMuted() {} setContinuousPlayback() {}