mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
chore: remove comments
This commit is contained in:
parent
86db4c47e4
commit
f2c9bb6d88
2 changed files with 0 additions and 2 deletions
|
|
@ -17,7 +17,6 @@ const EpisodePicker = ({ className, onSubmit }: Props) => {
|
||||||
const { initialSeason, initialEpisode } = useMemo(() => {
|
const { initialSeason, initialEpisode } = useMemo(() => {
|
||||||
const splitPath = window.location.hash.split('/');
|
const splitPath = window.location.hash.split('/');
|
||||||
if (splitPath[splitPath.length - 1] === '') {
|
if (splitPath[splitPath.length - 1] === '') {
|
||||||
// remove the empty element
|
|
||||||
splitPath.pop();
|
splitPath.pop();
|
||||||
}
|
}
|
||||||
const videoId = decodeURIComponent(splitPath[splitPath.length - 1]);
|
const videoId = decodeURIComponent(splitPath[splitPath.length - 1]);
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ const useSeason = (urlParams, queryParams) => {
|
||||||
const nextQueryParams = new URLSearchParams(queryParams);
|
const nextQueryParams = new URLSearchParams(queryParams);
|
||||||
nextQueryParams.set('season', season);
|
nextQueryParams.set('season', season);
|
||||||
const path = urlParams.path.endsWith('/') ?
|
const path = urlParams.path.endsWith('/') ?
|
||||||
// remove the trailing /
|
|
||||||
urlParams.path.slice(0, -1):
|
urlParams.path.slice(0, -1):
|
||||||
urlParams.path;
|
urlParams.path;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue