dante commited on
Commit
a8d6ccc
·
verified ·
1 Parent(s): 69cd6d4

Upload 4 files

Browse files
Files changed (1) hide show
  1. src/App.tsx +3 -1
src/App.tsx CHANGED
@@ -88,6 +88,7 @@ function App() {
88
  setSelectedComicId(null);
89
  setSelectedChapter(null);
90
  setShowInfo(false);
 
91
  } else if (hash.startsWith('manga/')) {
92
  if (hash.endsWith('/hd')) {
93
  const mangaId = hash.replace('manga/', '').replace('/hd', '');
@@ -207,8 +208,9 @@ function App() {
207
  toggleSelectManga(mangaId);
208
  return;
209
  }
210
- window.location.hash = `manga / ${mangaId} `;
211
  setSelectedComicId(mangaId);
 
212
  };
213
 
214
  const handleBackToHome = () => {
 
88
  setSelectedComicId(null);
89
  setSelectedChapter(null);
90
  setShowInfo(false);
91
+ setShowHD(false);
92
  } else if (hash.startsWith('manga/')) {
93
  if (hash.endsWith('/hd')) {
94
  const mangaId = hash.replace('manga/', '').replace('/hd', '');
 
208
  toggleSelectManga(mangaId);
209
  return;
210
  }
211
+ window.location.hash = `manga/${mangaId}`;
212
  setSelectedComicId(mangaId);
213
+ setShowHD(false);
214
  };
215
 
216
  const handleBackToHome = () => {