mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
Fix small issue with flix page
This commit is contained in:
parent
6e1c82dabf
commit
4777886144
1 changed files with 2 additions and 2 deletions
|
@ -44,10 +44,10 @@ function isShowOrMovie(tmdbFullId: string): "show" | "movie" | "unknown" {
|
|||
function directLinkToContent(tmdbFullId: string) {
|
||||
const currentDomain = window.location.href.split("#")[0];
|
||||
if (isShowOrMovie(tmdbFullId) === "show") {
|
||||
return `${currentDomain}media/tmdb-movie-${tmdbFullId.split("-")[1]}`;
|
||||
return `${currentDomain}/media/tmdb-movie-${tmdbFullId.split("-")[1]}`;
|
||||
}
|
||||
if (isShowOrMovie(tmdbFullId) === "movie") {
|
||||
return `${currentDomain}media/tmdb-tv-${tmdbFullId.split("-")[1]}`;
|
||||
return `${currentDomain}/media/tmdb-tv-${tmdbFullId.split("-")[1]}`;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue