From 69ffcbad27353bfd0238ba7e79e6caf3835b0efd Mon Sep 17 00:00:00 2001 From: Arthur Hulsman Date: Fri, 9 Mar 2018 11:17:24 +0100 Subject: Ad block detection would not work when calling play() right after creating the player instance, so the adsManager now also rejects on such a case. Also made sure that calling play() will wait for the adsManager promise to resolve or otherwise return the media.play() method. --- src/sass/plugins/ads.scss | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/sass/plugins') diff --git a/src/sass/plugins/ads.scss b/src/sass/plugins/ads.scss index 98620508..89330611 100644 --- a/src/sass/plugins/ads.scss +++ b/src/sass/plugins/ads.scss @@ -12,15 +12,11 @@ z-index: -1; // Hide it. // Make sure the inner container is big enough for the ad creative. - > div { + > div, + > div iframe { position: absolute; width: 100%; height: 100%; - iframe { - position: absolute; - width: 100%; - height: 100%; - } } &::after { -- cgit v1.2.3