@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 CHANGED
@@ -73702,6 +73702,13 @@ var BradmaxMediaElement = /*#__PURE__*/ function(GenericMediaElement) {
73702
73702
  var _videoElement2_contextMediaSource;
73703
73703
  return ((_videoElement2_contextMediaSource = videoElement2.contextMediaSource) === null || _videoElement2_contextMediaSource === void 0 ? void 0 : _videoElement2_contextMediaSource.url) === _this.source;
73704
73704
  });
73705
+ if (!videoElement) {
73706
+ var _this_instance1;
73707
+ videoElement = (_this_instance1 = this.instance) === null || _this_instance1 === void 0 ? void 0 : _this_instance1.videoElementsManager.videoElementsInUse.find(function(videoElement2) {
73708
+ var _videoElement2_contextMediaSource;
73709
+ return Boolean((_videoElement2_contextMediaSource = videoElement2.contextMediaSource) === null || _videoElement2_contextMediaSource === void 0 ? void 0 : _videoElement2_contextMediaSource.url);
73710
+ });
73711
+ }
73705
73712
  if (videoElement) {
73706
73713
  return videoElement.element;
73707
73714
  }
@@ -82652,7 +82659,8 @@ var Ads = /*#__PURE__*/ function() {
82652
82659
  this.videoAds.start();
82653
82660
  this.staticAds.start();
82654
82661
  this.observer.observe(document.body, {
82655
- childList: true
82662
+ childList: true,
82663
+ subtree: true
82656
82664
  });
82657
82665
  }
82658
82666
  },