diff options
Diffstat (limited to 'dist/plyr.js')
-rw-r--r-- | dist/plyr.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/dist/plyr.js b/dist/plyr.js index c838ddb6..675ae338 100644 --- a/dist/plyr.js +++ b/dist/plyr.js @@ -6594,6 +6594,11 @@ typeof navigator === "object" && (function (global, factory) { value: function onAdsManagerLoaded(event) { var _this6 = this; + // Load could occur after a source change (race condition) + if (!this.enabled) { + return; + } + // Get the ads manager var settings = new google.ima.AdsRenderingSettings(); @@ -6627,10 +6632,6 @@ typeof navigator === "object" && (function (global, factory) { }); } - // Get skippable state - // TODO: Skip button - // this.player.debug.warn(this.manager.getAdSkippableState()); - // Set volume to match player this.manager.setVolume(this.player.volume); |