diff options
author | Sam Potts <sam@potts.es> | 2018-03-27 10:36:08 +1100 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2018-03-27 10:36:08 +1100 |
commit | 9c1bc6ab08e4fe68565a12f76b58684f4c6a8354 (patch) | |
tree | f36ad0d9fbd5591038bba52822bad9c21121636d /src/js/plugins/ads.js | |
parent | 3d2ba8c00942075ae387a09ab5aade1f680142c7 (diff) | |
download | plyr-9c1bc6ab08e4fe68565a12f76b58684f4c6a8354.tar.lz plyr-9c1bc6ab08e4fe68565a12f76b58684f4c6a8354.tar.xz plyr-9c1bc6ab08e4fe68565a12f76b58684f4c6a8354.zip |
Fixes for fast forward and issues with event.preventDefault()
Diffstat (limited to 'src/js/plugins/ads.js')
-rw-r--r-- | src/js/plugins/ads.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/js/plugins/ads.js b/src/js/plugins/ads.js index 31a797c2..3e8f0923 100644 --- a/src/js/plugins/ads.js +++ b/src/js/plugins/ads.js @@ -7,6 +7,7 @@ /* global google */ import utils from '../utils'; +import i18n from '../i18n'; class Ads { /** @@ -178,7 +179,7 @@ class Ads { const update = () => { const time = utils.formatTime(Math.max(this.manager.getRemainingTime(), 0)); - const label = `${this.player.config.i18n.advertisement} - ${time}`; + const label = `${i18n.get('advertisement', this.player.config)} - ${time}`; this.elements.container.setAttribute('data-badge-text', label); }; |