mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-13 20:31:48 +00:00
fix: linting
This commit is contained in:
parent
2a823711df
commit
ee11a3ddd2
2 changed files with 4 additions and 5 deletions
|
|
@ -13,7 +13,7 @@ const ContinueWatchingItem = ({ _id, notifications, deepLinks, ...props }) => {
|
|||
const onClick = React.useCallback(() => {
|
||||
if (deepLinks?.metaDetailsVideos ?? deepLinks?.metaDetailsStreams) {
|
||||
// TODO - remove # from deeplinks in core if possible
|
||||
const navigateTo = deepLinks?.metaDetailsVideos ?? deepLinks?.metaDetailsStreams
|
||||
const navigateTo = deepLinks?.metaDetailsVideos ?? deepLinks?.metaDetailsStreams;
|
||||
navigate(navigateTo.replace('#', ''));
|
||||
}
|
||||
}, [deepLinks]);
|
||||
|
|
@ -21,7 +21,7 @@ const ContinueWatchingItem = ({ _id, notifications, deepLinks, ...props }) => {
|
|||
const onPlayClick = React.useCallback((event) => {
|
||||
event.stopPropagation();
|
||||
if (deepLinks?.player ?? deepLinks?.metaDetailsStreams ?? deepLinks?.metaDetailsVideos) {
|
||||
const navigateTo = deepLinks?.player ?? deepLinks?.metaDetailsStreams ?? deepLinks?.metaDetailsVideos
|
||||
const navigateTo = deepLinks?.player ?? deepLinks?.metaDetailsStreams ?? deepLinks?.metaDetailsVideos;
|
||||
navigate(navigateTo.replace('#', ''));
|
||||
}
|
||||
}, [deepLinks]);
|
||||
|
|
|
|||
|
|
@ -81,10 +81,9 @@ const MetaDetails = () => {
|
|||
}, [setSeason]);
|
||||
const handleEpisodeSearch = React.useCallback((season, episode) => {
|
||||
const searchVideoHash = encodeURIComponent(`${urlParams.id}:${season}:${episode}`);
|
||||
const url = location.hash;
|
||||
console.log(location);
|
||||
const url = location.pathname;
|
||||
const searchVideoPath = url.replace(encodeURIComponent(urlParams.videoId), searchVideoHash);
|
||||
navigate(searchVideoPath.replace('#', ''));
|
||||
navigate(searchVideoPath);
|
||||
}, [urlParams, location]);
|
||||
|
||||
const renderBackgroundImageFallback = React.useCallback(() => null, []);
|
||||
|
|
|
|||
Loading…
Reference in a new issue