Skip to content

Commit

Permalink
chore: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed May 28, 2023
1 parent e2691df commit 1038250
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/home/previews/aliyun_video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ const Preview = () => {
}
})
// Fixed subtitle loss when switching videos with different resolutions
if(subtitle){
player.on("video:play", (url) => {
player.subtitle.url = proxyLink(subtitle, true);
});
if (subtitle) {
player.on("video:play", (_url) => {
player.subtitle.url = proxyLink(subtitle, true)
})
}
})
})
Expand Down

0 comments on commit 1038250

Please sign in to comment.