mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-21 14:47:41 +01:00
Try to account for user interaction
This commit is contained in:
parent
0126b52490
commit
08163ede9b
1 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ export function NextEpisodeButton(props: {
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
||||||
return () => clearInterval(interval);
|
return () => clearInterval(interval);
|
||||||
}, []);
|
}, [time, duration]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (seconds === 0) {
|
if (seconds === 0) {
|
||||||
|
@ -131,7 +131,7 @@ export function NextEpisodeButton(props: {
|
||||||
className="bg-buttons-primary hover:bg-buttons-primaryHover text-buttons-primaryText flex justify-center items-center"
|
className="bg-buttons-primary hover:bg-buttons-primaryHover text-buttons-primaryText flex justify-center items-center"
|
||||||
>
|
>
|
||||||
<Icon className="text-xl mr-1" icon={Icons.SKIP_EPISODE} />
|
<Icon className="text-xl mr-1" icon={Icons.SKIP_EPISODE} />
|
||||||
{t(`player.nextEpisode.next${seconds > 0 ? ` in ${seconds}` : ""}`)}
|
{t(`player.nextEpisode.next ${seconds > 0 ? ` in ${seconds}` : ""}`)}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</Transition>
|
</Transition>
|
||||||
|
|
Loading…
Reference in a new issue