@brndts/brndts-ads 1.13.10 → 1.13.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -73777,6 +73777,13 @@ var BradmaxMediaElement = /*#__PURE__*/ function(GenericMediaElement) {
|
|
73777
73777
|
var _videoElement2_contextMediaSource;
|
73778
73778
|
return ((_videoElement2_contextMediaSource = videoElement2.contextMediaSource) === null || _videoElement2_contextMediaSource === void 0 ? void 0 : _videoElement2_contextMediaSource.url) === _this.source;
|
73779
73779
|
});
|
73780
|
+
if (!videoElement) {
|
73781
|
+
var _this_instance1;
|
73782
|
+
videoElement = (_this_instance1 = this.instance) === null || _this_instance1 === void 0 ? void 0 : _this_instance1.videoElementsManager.videoElementsInUse.find(function(videoElement2) {
|
73783
|
+
var _videoElement2_contextMediaSource;
|
73784
|
+
return Boolean((_videoElement2_contextMediaSource = videoElement2.contextMediaSource) === null || _videoElement2_contextMediaSource === void 0 ? void 0 : _videoElement2_contextMediaSource.url);
|
73785
|
+
});
|
73786
|
+
}
|
73780
73787
|
if (videoElement) {
|
73781
73788
|
return videoElement.element;
|
73782
73789
|
}
|
@@ -82783,7 +82790,8 @@ var Ads = /*#__PURE__*/ function() {
|
|
82783
82790
|
this.videoAds.start();
|
82784
82791
|
this.staticAds.start();
|
82785
82792
|
this.observer.observe(document.body, {
|
82786
|
-
childList: true
|
82793
|
+
childList: true,
|
82794
|
+
subtree: true
|
82787
82795
|
});
|
82788
82796
|
}
|
82789
82797
|
},
|