diff options
Diffstat (limited to 'client/src/assets/player/translations-manager.ts')
-rw-r--r-- | client/src/assets/player/translations-manager.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/assets/player/translations-manager.ts b/client/src/assets/player/translations-manager.ts index d5a09a31a..8a6e67dda 100644 --- a/client/src/assets/player/translations-manager.ts +++ b/client/src/assets/player/translations-manager.ts | |||
@@ -23,13 +23,13 @@ export class TranslationsManager { | |||
23 | 23 | ||
24 | let p: Promise<any> | 24 | let p: Promise<any> |
25 | 25 | ||
26 | if (TranslationsManager.videojsLocaleCache[ path ]) { | 26 | if (TranslationsManager.videojsLocaleCache[path]) { |
27 | p = Promise.resolve(TranslationsManager.videojsLocaleCache[ path ]) | 27 | p = Promise.resolve(TranslationsManager.videojsLocaleCache[path]) |
28 | } else { | 28 | } else { |
29 | p = fetch(path + '/player.json') | 29 | p = fetch(path + '/player.json') |
30 | .then(res => res.json()) | 30 | .then(res => res.json()) |
31 | .then(json => { | 31 | .then(json => { |
32 | TranslationsManager.videojsLocaleCache[ path ] = json | 32 | TranslationsManager.videojsLocaleCache[path] = json |
33 | return json | 33 | return json |
34 | }) | 34 | }) |
35 | .catch(err => { | 35 | .catch(err => { |