mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 16:33:26 +00:00
chore: prettier
This commit is contained in:
@@ -173,7 +173,8 @@ const captionTypeToTextTracksType = {
|
||||
};
|
||||
|
||||
function convertCaptionsToTextTracks(captions: Caption[]): TextTracks {
|
||||
return captions.map((caption) => {
|
||||
return captions
|
||||
.map((caption) => {
|
||||
if (Platform.OS === "ios" && caption.type !== "vtt") {
|
||||
return null;
|
||||
}
|
||||
@@ -184,5 +185,6 @@ function convertCaptionsToTextTracks(captions: Caption[]): TextTracks {
|
||||
type: captionTypeToTextTracksType[caption.type],
|
||||
uri: caption.url,
|
||||
};
|
||||
}).filter(Boolean) as TextTracks;
|
||||
})
|
||||
.filter(Boolean) as TextTracks;
|
||||
}
|
||||
|
Reference in New Issue
Block a user