mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
fix: populate AdError.ErrorCode and AdError.Type enums
This commit is contained in:
parent
8f544e53bc
commit
b2e8a0146a
1 changed files with 8 additions and 2 deletions
|
|
@ -467,8 +467,14 @@ if (!window.google || !window.google.ima || !window.google.ima.VERSION) {
|
||||||
return `AdError ${this.errorCode}: ${this.message}`;
|
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 = () => {
|
const isEngadget = () => {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue