This repository was archived by the owner on Feb 15, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2222 function getCurrentPageFromSearchParams(
2323 params : URLSearchParams
2424 ): CurrentPage {
25- if (searchParams .has (" about" )) {
25+ if (params .has (" about" )) {
2626 return CurrentPage .About ;
27- } else if (searchParams .has (" credits" )) {
27+ } else if (params .has (" credits" )) {
2828 return CurrentPage .Credits ;
2929 } else {
3030 return CurrentPage .Episode ;
3131 }
3232 }
3333
34- function getEpisodeFromSearchKeys(keys ) {
34+ function getEpisodeFromSearchKeys(keys : string [] ) {
3535 const episodeId = keys .find (getEpisodeById );
3636 return getEpisodeById (episodeId ) ?? getLatestEpisode ();
3737 }
Original file line number Diff line number Diff line change 3434 }
3535 }
3636
37- function onloadedmetadata(e : Event ) {
37+ function onloadedmetadata() {
3838 state = PlayState .Stopped ;
3939 updateTimeString ();
4040 }
7575 audio .currentTime = 0 ;
7676 }
7777
78- function seek(deltaSeconds ) {
78+ function seek(deltaSeconds : number ) {
7979 if (state !== PlayState .Playing && state !== PlayState .Paused ) {
8080 return ;
8181 }
Original file line number Diff line number Diff line change @@ -1645,7 +1645,7 @@ const episodeRawDatas: EpisodeRawData[] = [
16451645 } ,
16461646] ;
16471647
1648- const episodeDatas : EpisodeData [ ] = episodeRawDatas . map ( ( o , i ) => ( {
1648+ const episodeDatas : EpisodeData [ ] = episodeRawDatas . map ( ( o ) => ( {
16491649 ...o ,
16501650 fileRelUrl : "/audio/" + o . fileName ,
16511651} ) ) ;
You can’t perform that action at this time.
0 commit comments