Skip to content

Commit 47e8c75

Browse files
author
Atlassian Bamboo
committed
deploy: update dist v1.6.39
1 parent 9816305 commit 47e8c75

File tree

8 files changed

+225
-129
lines changed

8 files changed

+225
-129
lines changed

dist/build.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=1.6.27
1+
version=1.6.39

dist/redirect-files/google-ima3.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,14 @@
210210
AdsLoader.prototype.getVersion = function() {
211211
return VERSION;
212212
};
213-
AdsLoader.prototype.requestAds = function() {
213+
AdsLoader.prototype.requestAds = function(adsRequest, userRequestContext) {
214+
var _this = this;
214215
if (!managerLoaded) {
215216
managerLoaded = true;
216-
var e = new ima.AdError("adPlayError", 1205, 1205, "The browser prevented playback initiated without user interaction.");
217-
this._dispatch(new ima.AdErrorEvent(e));
217+
var e = new ima.AdError("adPlayError", 1205, 1205, "The browser prevented playback initiated without user interaction.", adsRequest, userRequestContext);
218+
requestAnimationFrame((function() {
219+
_this._dispatch(new ima.AdErrorEvent(e));
220+
}));
218221
}
219222
};
220223
var AdsRenderingSettings = noopFunc;
@@ -360,10 +363,12 @@
360363
return 1;
361364
}
362365
};
363-
var AdError = function AdError(type, code, vast, message) {
366+
var AdError = function AdError(type, code, vast, message, adsRequest, userRequestContext) {
364367
this.errorCode = code;
365368
this.message = message;
366369
this.type = type;
370+
this.adsRequest = adsRequest;
371+
this.userRequestContext = userRequestContext;
367372
this.getErrorCode = function() {
368373
return this.errorCode;
369374
};
@@ -446,6 +451,10 @@
446451
return this.error;
447452
};
448453
this.getUserRequestContext = function() {
454+
var _this$error;
455+
if ((_this$error = this.error) !== null && _this$error !== void 0 && _this$error.userRequestContext) {
456+
return this.error.userRequestContext;
457+
}
449458
return {};
450459
};
451460
};

dist/redirect-files/googletagservices-gpt.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
Slot.prototype.getDomId = noopStr;
3535
Slot.prototype.getSlotElementId = noopStr;
3636
Slot.prototype.getSlotId = noopThis;
37+
Slot.prototype.getSizes = noopArray;
3738
Slot.prototype.getTargeting = noopArray;
3839
Slot.prototype.getTargetingKeys = noopArray;
3940
Slot.prototype.set = noopThis;

dist/redirects.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

dist/redirects.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
22
# AdGuard Scriptlets (Redirects Source)
3-
# Version 1.6.27
3+
# Version 1.6.39
44
#
55
- title: 1x1-transparent.gif
66
description: |-
@@ -1710,11 +1710,14 @@
17101710
AdsLoader.prototype.getVersion = function() {
17111711
return VERSION;
17121712
};
1713-
AdsLoader.prototype.requestAds = function() {
1713+
AdsLoader.prototype.requestAds = function(adsRequest, userRequestContext) {
1714+
var _this = this;
17141715
if (!managerLoaded) {
17151716
managerLoaded = true;
1716-
var e = new ima.AdError("adPlayError", 1205, 1205, "The browser prevented playback initiated without user interaction.");
1717-
this._dispatch(new ima.AdErrorEvent(e));
1717+
var e = new ima.AdError("adPlayError", 1205, 1205, "The browser prevented playback initiated without user interaction.", adsRequest, userRequestContext);
1718+
requestAnimationFrame((function() {
1719+
_this._dispatch(new ima.AdErrorEvent(e));
1720+
}));
17181721
}
17191722
};
17201723
var AdsRenderingSettings = noopFunc;
@@ -1860,10 +1863,12 @@
18601863
return 1;
18611864
}
18621865
};
1863-
var AdError = function AdError(type, code, vast, message) {
1866+
var AdError = function AdError(type, code, vast, message, adsRequest, userRequestContext) {
18641867
this.errorCode = code;
18651868
this.message = message;
18661869
this.type = type;
1870+
this.adsRequest = adsRequest;
1871+
this.userRequestContext = userRequestContext;
18671872
this.getErrorCode = function() {
18681873
return this.errorCode;
18691874
};
@@ -1946,6 +1951,10 @@
19461951
return this.error;
19471952
};
19481953
this.getUserRequestContext = function() {
1954+
var _this$error;
1955+
if ((_this$error = this.error) !== null && _this$error !== void 0 && _this$error.userRequestContext) {
1956+
return this.error.userRequestContext;
1957+
}
19491958
return {};
19501959
};
19511960
};
@@ -2234,6 +2243,7 @@
22342243
Slot.prototype.getDomId = noopStr;
22352244
Slot.prototype.getSlotElementId = noopStr;
22362245
Slot.prototype.getSlotId = noopThis;
2246+
Slot.prototype.getSizes = noopArray;
22372247
Slot.prototype.getTargeting = noopArray;
22382248
Slot.prototype.getTargetingKeys = noopArray;
22392249
Slot.prototype.set = noopThis;

dist/scriptlets.corelibs.json

Lines changed: 13 additions & 13 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)