diff options
author | Sam Potts <sam@potts.es> | 2018-06-21 09:06:28 +1000 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2018-06-21 09:06:28 +1000 |
commit | e04b90c9c030bf5629e034f616a636245770a8d1 (patch) | |
tree | f25c0f2f50ef03714f209d94497960a710f66b0e /src/js/plugins/ads.js | |
parent | 20f2ddc11db39fd19f395cf4967fb5dcbcc9d5ca (diff) | |
download | plyr-e04b90c9c030bf5629e034f616a636245770a8d1.tar.lz plyr-e04b90c9c030bf5629e034f616a636245770a8d1.tar.xz plyr-e04b90c9c030bf5629e034f616a636245770a8d1.zip |
Ads only on HTML5 and .is cleanup
Diffstat (limited to 'src/js/plugins/ads.js')
-rw-r--r-- | src/js/plugins/ads.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/js/plugins/ads.js b/src/js/plugins/ads.js index e0d49265..856772d5 100644 --- a/src/js/plugins/ads.js +++ b/src/js/plugins/ads.js @@ -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) + ); } /** |