mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-22 02:12:44 +01:00
Add AdRequest.omidAccessModeRules property to google-ima shim
Add the missing AdRequest.omidAccessModeRules[1] property, to avoid breaking websites that access it. 1 - https://developers.google.com/interactive-media-ads/docs/sdks/html5/client-side/reference/js/google.ima.AdsRequest#omidAccessModeRules
This commit is contained in:
parent
430c578978
commit
7d99559a30
@ -15,6 +15,7 @@
|
|||||||
* - Corrected typo in `UniversalAdIdInfo.getAdIdValue()` method name
|
* - Corrected typo in `UniversalAdIdInfo.getAdIdValue()` method name
|
||||||
* - Corrected dispatch of LOAD event when preloading is enabled
|
* - Corrected dispatch of LOAD event when preloading is enabled
|
||||||
* - Corrected dispatch of CONTENT_PAUSE/RESUME_REQUESTED events
|
* - Corrected dispatch of CONTENT_PAUSE/RESUME_REQUESTED events
|
||||||
|
* - Added missing `AdsRequest.omidAccessModeRules` property
|
||||||
*
|
*
|
||||||
* Related issue:
|
* Related issue:
|
||||||
* - https://github.com/uBlockOrigin/uBlock-issues/issues/2158
|
* - https://github.com/uBlockOrigin/uBlock-issues/issues/2158
|
||||||
@ -488,6 +489,9 @@ if (!window.google || !window.google.ima || !window.google.ima.VERSION) {
|
|||||||
class AdsRenderingSettings {}
|
class AdsRenderingSettings {}
|
||||||
|
|
||||||
class AdsRequest {
|
class AdsRequest {
|
||||||
|
constructor() {
|
||||||
|
this.omidAccessModeRules = {};
|
||||||
|
}
|
||||||
setAdWillAutoPlay() {}
|
setAdWillAutoPlay() {}
|
||||||
setAdWillPlayMuted() {}
|
setAdWillPlayMuted() {}
|
||||||
setContinuousPlayback() {}
|
setContinuousPlayback() {}
|
||||||
|
Loading…
Reference in New Issue
Block a user