mirror of
https://github.com/koodo-reader/koodo-reader.git
synced 2025-12-23 23:17:55 -05:00
Remove unnecessary console.log statements across various components to clean up the codebase and improve performance.
This commit is contained in:
2
src/assets/lib/kookit-extra-browser.min.js
vendored
2
src/assets/lib/kookit-extra-browser.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
src/assets/lib/kookit.min.js
vendored
2
src/assets/lib/kookit.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -64,11 +64,6 @@ class UpdateInfo extends React.Component<UpdateInfoProps, UpdateInfoState> {
|
||||
if ((process as any).windowsStore) {
|
||||
return;
|
||||
}
|
||||
console.log(
|
||||
packageInfo.version,
|
||||
newVersion,
|
||||
compareVersions(packageInfo.version, newVersion)
|
||||
);
|
||||
if (compareVersions(newVersion, packageInfo.version) > 0) {
|
||||
if (
|
||||
ConfigService.getReaderConfig("isDisableUpdate") !== "yes" ||
|
||||
|
||||
@@ -32,7 +32,6 @@ class PopupBox extends React.Component<PopupBoxProps, PopupBoxStates> {
|
||||
if (isElectron) {
|
||||
const { ipcRenderer } = window.require("electron");
|
||||
let isShowUrl = ipcRenderer.sendSync("url-window-status", "ping");
|
||||
console.log("ishwo", isShowUrl);
|
||||
this.setState({ isShowUrl });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,9 +111,6 @@ class Header extends React.Component<HeaderProps, HeaderState> {
|
||||
ipcRenderer.on("reading-finished", async (event: any, config: any) => {
|
||||
this.handleFinishReading();
|
||||
});
|
||||
ipcRenderer.on("log-message", (event, message) => {
|
||||
console.log(`[Main Process Log]: ${message}`);
|
||||
});
|
||||
} else {
|
||||
upgradeConfig();
|
||||
const status = await LocalFileManager.getPermissionStatus();
|
||||
|
||||
@@ -71,11 +71,6 @@ class BookList extends React.Component<BookListProps, BookListState> {
|
||||
|
||||
// 保存 visibilitychange 监听器引用
|
||||
this.visibilityChangeHandler = async (event) => {
|
||||
console.log(
|
||||
document.visibilityState,
|
||||
"visibilitychange",
|
||||
ConfigService.getReaderConfig("isFinishWebReading")
|
||||
);
|
||||
if (document.visibilityState === "visible" && !isElectron) {
|
||||
await this.handleFinishReading();
|
||||
}
|
||||
@@ -85,7 +80,6 @@ class BookList extends React.Component<BookListProps, BookListState> {
|
||||
if (isElectron) {
|
||||
const { ipcRenderer } = window.require("electron");
|
||||
ipcRenderer.on("reading-finished", async (event: any, config: any) => {
|
||||
console.log("asdfasgfdd");
|
||||
this.handleFinishReading();
|
||||
});
|
||||
}
|
||||
@@ -137,7 +131,6 @@ class BookList extends React.Component<BookListProps, BookListState> {
|
||||
}
|
||||
}
|
||||
handleFinishReading = async () => {
|
||||
console.log(this.scrollContainer, "scrollContainer");
|
||||
if (!this.scrollContainer.current) return;
|
||||
if (
|
||||
this.scrollContainer.current &&
|
||||
|
||||
@@ -114,7 +114,6 @@ class ContentList extends React.Component<ContentListProps, ContentListState> {
|
||||
"recordLocation",
|
||||
{}
|
||||
);
|
||||
console.log(bookLocation, "booklasf");
|
||||
|
||||
// 自动展开包含当前章节的路径
|
||||
if (bookLocation.chapterHref) {
|
||||
@@ -122,7 +121,6 @@ class ContentList extends React.Component<ContentListProps, ContentListState> {
|
||||
htmlBook.chapters,
|
||||
bookLocation
|
||||
);
|
||||
console.log(expandedPaths, "expandedPaths");
|
||||
this.setState({ expandedItems: expandedPaths });
|
||||
}
|
||||
|
||||
|
||||
@@ -140,7 +140,6 @@ class GeneralSetting extends React.Component<
|
||||
window.require("path").join(newPath, "config", "config.json"),
|
||||
"utf-8"
|
||||
);
|
||||
console.log(text, "text");
|
||||
let config = JSON.parse(text);
|
||||
for (let key in config) {
|
||||
ConfigService.setItem(key, config[key]);
|
||||
|
||||
@@ -1008,7 +1008,6 @@ export const resetKoodoSync = async () => {
|
||||
};
|
||||
export const handleCloudSync = async () => {
|
||||
let syncRes = await getCloudSyncToken();
|
||||
console.log(syncRes, "syncres");
|
||||
if (
|
||||
syncRes.code === 200 &&
|
||||
syncRes.data.default_sync_option &&
|
||||
|
||||
Reference in New Issue
Block a user