TypeScript check and typing corrections.
This commit is contained in:
1 parent
21250a1a2d
commit
4f39875786
14 files changed
+27
-22
No files matched your search
@@ -46,7 +46,7 @@ const next = () => {
|
||||
let el: HTMLAudioElement | HTMLVideoElement | null = null
|
||||
for (const i in medias) {
|
||||
if (medias[i] === (fscurrent || media.value)) {
|
||||
el = medias[+i + 1] || medias[0]
|
||||
el = medias[+i + 1] ?? medias[0] ?? null
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user