From 9c1bc6ab08e4fe68565a12f76b58684f4c6a8354 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Tue, 27 Mar 2018 10:36:08 +1100 Subject: Fixes for fast forward and issues with event.preventDefault() --- src/js/plugins/ads.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/js/plugins') 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); }; -- cgit v1.2.3