mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix next episode url for onEnd callback
This commit is contained in:
parent
e3cc80d32a
commit
4bc54d350b
@ -160,11 +160,9 @@ export const Player = ({
|
||||
experimental: { nativeBehavior: "stack-replace", isNestedNavigator: false },
|
||||
});
|
||||
else
|
||||
router.replace(
|
||||
data.nextEpisode ? `/watch/${data.nextEpisode.slug}` : `/show/${data.show!.slug}`,
|
||||
undefined,
|
||||
{ experimental: { nativeBehavior: "stack-replace", isNestedNavigator: false } },
|
||||
);
|
||||
router.replace(next ?? `/show/${data.show!.slug}`, undefined, {
|
||||
experimental: { nativeBehavior: "stack-replace", isNestedNavigator: false },
|
||||
});
|
||||
}}
|
||||
{...css(StyleSheet.absoluteFillObject)}
|
||||
/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user