aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/translations-manager.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-08-17 14:42:53 +0200
committerChocobozzz <me@florianbigard.com>2021-08-18 08:35:06 +0200
commit9df52d660feb722404be00a50f3c8a612bec1c15 (patch)
treedde52880fa012874d24c60f64eb596b0a789cc8b /client/src/assets/player/translations-manager.ts
parentadb8809d43648ea0a64d6845bb39aa3bd0e005a6 (diff)
downloadPeerTube-9df52d660feb722404be00a50f3c8a612bec1c15.tar.gz
PeerTube-9df52d660feb722404be00a50f3c8a612bec1c15.tar.zst
PeerTube-9df52d660feb722404be00a50f3c8a612bec1c15.zip
Migrate client to eslint
Diffstat (limited to 'client/src/assets/player/translations-manager.ts')
-rw-r--r--client/src/assets/player/translations-manager.ts6
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 => {