fix: populate AdError.ErrorCode and AdError.Type enums

This commit is contained in:
ryanbr 2026-03-01 21:33:44 +00:00
parent 8f544e53bc
commit b2e8a0146a
No known key found for this signature in database

View file

@ -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 {