This commit is contained in:
afkarxyz committed 2026-07-05 19:09:54 +07:00
1 parent 6bd03678f8
commit 76acb6f5e1
15 files changed
+532 -449

No files matched your search

+3
View File
@@ -9,6 +9,7 @@ import { openExternal } from "@/lib/utils";
import { compareVersionNumbers } from "@/lib/version";
import { toastWithSound as toast } from "@/lib/toast-with-sound";
import { logger } from "@/lib/logger";
import { initDownloadProgressEvents } from "@/lib/download-state";
import { saveFetchState, getFetchState, clearFetchState, getResumableInfo, mergeTimelines, saveCursor, getCursor, clearCursor, type FetchState, } from "@/lib/fetch-state";
import { TitleBar } from "@/components/TitleBar";
import { Sidebar, type PageType } from "@/components/Sidebar";
@@ -165,10 +166,12 @@ function App() {
}
};
mediaQuery.addEventListener("change", handleChange);
const cleanupDownloadProgress = initDownloadProgressEvents();
checkForUpdates();
loadHistory();
return () => {
mediaQuery.removeEventListener("change", handleChange);
cleanupDownloadProgress();
};
}, []);
useEffect(() => {