Restored “Ad” in label

This commit is contained in:
Sam Potts
2018-01-24 09:06:20 +11:00
parent d4234da9aa
commit b4e22e2e7b
7 changed files with 10 additions and 8 deletions

View File

@ -179,6 +179,7 @@ const defaults = {
reset: 'Reset',
none: 'None',
disabled: 'Disabled',
advertisment: 'Ad',
},
// URLs

View File

@ -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);

View File

@ -1,6 +1,6 @@
// ==========================================================================
// Plyr
// plyr.js v3.0.0-beta.6
// plyr.js v3.0.0-beta.7
// https://github.com/sampotts/plyr
// License: The MIT License (MIT)
// ==========================================================================