Ads only on HTML5 and .is cleanup

This commit is contained in:
Sam Potts
2018-06-21 09:06:28 +10:00
parent 20f2ddc11d
commit e04b90c9c0
10 changed files with 310 additions and 260 deletions

View File

@ -49,7 +49,9 @@ class Ads {
}
get enabled() {
return this.player.isVideo && this.player.config.ads.enabled && !is.empty(this.publisherId);
return (
this.player.isHTML5 && this.player.isVideo && this.player.config.ads.enabled && !is.empty(this.publisherId)
);
}
/**