Skip to content

Commit ec27a79

Browse files
committed
Remove unnecessary console.log statements from PopupMenu, PopupRefer, and OperationPanel components to clean up the code and improve performance.
1 parent 82da8fb commit ec27a79

File tree

6 files changed

+2
-9
lines changed

6 files changed

+2
-9
lines changed

main.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,6 @@ const createMainWin = () => {
341341
width: parseInt(store.get("windowWidth") || 1050) / scaleRatio,
342342
height: parseInt(store.get("windowHeight") || 660) / scaleRatio,
343343
});
344-
console.log(isWindowVisible, 'isWindowVisible')
345344
readerWindow = new BrowserWindow({
346345
...options,
347346
width: parseInt(store.get("windowWidth") || 1050) / scaleRatio,
@@ -363,7 +362,6 @@ const createMainWin = () => {
363362
let bounds = readerWindow.getBounds();
364363
const currentDisplay = screen.getDisplayMatching(bounds);
365364
const primaryDisplay = screen.getPrimaryDisplay();
366-
console.log(currentDisplay, primaryDisplay, bounds)
367365
if (bounds.width > 0 && bounds.height > 0) {
368366
store.set({
369367
windowWidth: bounds.width,
@@ -863,7 +861,6 @@ const createMainWin = () => {
863861
let bounds = readerWindow.getBounds();
864862
const currentDisplay = screen.getDisplayMatching(bounds);
865863
const primaryDisplay = screen.getPrimaryDisplay();
866-
console.log(currentDisplay, primaryDisplay, bounds)
867864
if (bounds.width > 0 && bounds.height > 0) {
868865
store.set({
869866
windowWidth: bounds.width,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "koodo-reader",
33
"main": "main.js",
4-
"version": "2.1.8",
4+
"version": "2.1.9",
55
"description": "Koodo Reader is a cross-platform ebook reader",
66
"author": {
77
"name": "App by Troye",

src/assets/lib/kookit.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/popups/popupMenu/component.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ class PopupMenu extends React.Component<PopupMenuProps, PopupMenuStates> {
5454
getHtmlPosition(rect: any) {
5555
let pageSize = this.props.rendition.getPageSize();
5656
let posY = rect.bottom - pageSize.scrollTop;
57-
console.log(pageSize);
5857
let posX = rect.left + rect.width / 2;
5958
// fix popup position when crossing pages
6059
if (rect.width > pageSize.sectionWidth && rect.left < 0) {

src/components/popups/popupRefer/component.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ class PopupRefer extends React.Component<PopupReferProps, PopupReferStates> {
6262
};
6363
handleLinkJump = async (event: any): Promise<boolean> => {
6464
let href = this.props.rendition.getTargetHref(event);
65-
console.log("handleLinkJump", href, event);
6665
let result = await this.props.rendition.handleLinkJump(href, event);
67-
console.log("handleLinkJump result", result);
6866
if (!result.handled) {
6967
return false;
7068
}

src/containers/panels/operationPanel/component.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ class OperationPanel extends React.Component<
9999
let text = bookLocation.text;
100100
let chapter = bookLocation.chapterTitle;
101101
let percentage = bookLocation.percentage;
102-
console.log(bookLocation, "bookLocation");
103102

104103
let cfi = JSON.stringify(bookLocation);
105104
if (!text) {

0 commit comments

Comments
 (0)