aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plugins/ads.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-06-21 09:06:28 +1000
committerSam Potts <sam@potts.es>2018-06-21 09:06:28 +1000
commite04b90c9c030bf5629e034f616a636245770a8d1 (patch)
treef25c0f2f50ef03714f209d94497960a710f66b0e /src/js/plugins/ads.js
parent20f2ddc11db39fd19f395cf4967fb5dcbcc9d5ca (diff)
downloadplyr-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.js4
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)
+ );
}
/**