From b2e8a0146a53aa66fd46dfd198296e9daa625e7e Mon Sep 17 00:00:00 2001 From: ryanbr Date: Sun, 1 Mar 2026 21:33:44 +0000 Subject: [PATCH] fix: populate AdError.ErrorCode and AdError.Type enums --- src/web_accessible_resources/google-ima.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/web_accessible_resources/google-ima.js b/src/web_accessible_resources/google-ima.js index a3f612662..fc7ef98e8 100644 --- a/src/web_accessible_resources/google-ima.js +++ b/src/web_accessible_resources/google-ima.js @@ -467,8 +467,14 @@ if (!window.google || !window.google.ima || !window.google.ima.VERSION) { return `AdError ${this.errorCode}: ${this.message}`; } } - AdError.ErrorCode = {}; - AdError.Type = {}; + + AdError.ErrorCode = { + AUTOPLAY_DISALLOWED: 1205, + }; + AdError.Type = { + AD_LOAD: "adLoadError", + AD_PLAY: "adPlayError", + }; const isEngadget = () => { try {