aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plugins/ads.js
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2018-01-24 09:06:20 +1100
committerSam Potts <me@sampotts.me>2018-01-24 09:06:20 +1100
commitb4e22e2e7b6d73bb58778125801618f499c59bcc (patch)
treef1ccc4cd02e46bbf74c3ddcd552129e298fcc5b1 /src/js/plugins/ads.js
parentd4234da9aa1642bc314496fdae5bf4b8f30e580e (diff)
downloadplyr-b4e22e2e7b6d73bb58778125801618f499c59bcc.tar.lz
plyr-b4e22e2e7b6d73bb58778125801618f499c59bcc.tar.xz
plyr-b4e22e2e7b6d73bb58778125801618f499c59bcc.zip
Restored “Ad” in label
Diffstat (limited to 'src/js/plugins/ads.js')
-rw-r--r--src/js/plugins/ads.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/js/plugins/ads.js b/src/js/plugins/ads.js
index 5c828141..1028d73e 100644
--- a/src/js/plugins/ads.js
+++ b/src/js/plugins/ads.js
@@ -155,7 +155,8 @@ class Ads {
const update = () => {
const time = utils.formatTime(this.manager.getRemainingTime());
- this.elements.container.setAttribute('data-badge-text', time);
+ const label = `${this.player.config.i18n.advertisment} - ${time}`;
+ this.elements.container.setAttribute('data-badge-text', label);
};
this.countdownTimer = window.setInterval(update, 100);