]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/standalone/videos/test-embed.ts
NoImplicitAny flag true (#1157)
[github/Chocobozzz/PeerTube.git] / client / src / standalone / videos / test-embed.ts
index dba331e90bce4de676f320064fe41449ce1f9d48..b750c2ee6a734151f98d667a69b290b624d7c252 100644 (file)
@@ -66,11 +66,11 @@ window.addEventListener('load', async () => {
     updateRates()
   })
 
-  let updateResolutions = resolutions => {
+  let updateResolutions = ((resolutions: any) => {
     let resolutionListEl = document.querySelector('#resolution-list')
     resolutionListEl.innerHTML = ''
 
-    resolutions.forEach(resolution => {
+    resolutions.forEach((resolution: any) => {
       if (resolution.active) {
         let itemEl = document.createElement('strong')
         itemEl.innerText = `${resolution.label} (active)`
@@ -87,7 +87,7 @@ window.addEventListener('load', async () => {
         resolutionListEl.appendChild(itemEl)
       }
     })
-  }
+  })
 
   player.getResolutions().then(
     resolutions => updateResolutions(resolutions))