mirror of
https://github.com/koodo-reader/koodo-reader.git
synced 2026-06-19 21:30:44 -04:00
fix bug
Former-commit-id: 47e214f8fa7e6b6b873e5651f95cfc14f14fd796
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
|
||||
- Platform support: **Windows** , **macOS**, **Linux** and **Web**
|
||||
|
||||
- ave your data to **Dropbox** or **Webdav**
|
||||
- Save your data to **Dropbox** or **Webdav**
|
||||
|
||||
- Customize the source folder and synchronize among multiple devices using OneDrive, iCloud, Dropbox, etc.
|
||||
|
||||
|
||||
12
main.js
12
main.js
@@ -20,7 +20,7 @@ if (!singleInstance) {
|
||||
});
|
||||
}
|
||||
app.on("ready", () => {
|
||||
mainWin = new BrowserWindow({
|
||||
let option = {
|
||||
width: 1050,
|
||||
height: 660,
|
||||
webPreferences: {
|
||||
@@ -31,8 +31,11 @@ app.on("ready", () => {
|
||||
nodeIntegrationInSubFrames: true,
|
||||
allowRunningInsecureContent: true,
|
||||
},
|
||||
// icon: path.join(__dirname, "/assets/icons/256x256.png"),
|
||||
});
|
||||
};
|
||||
if (process.platform === "linux") {
|
||||
option.icon = path.join(__dirname, "/assets/icons/256x256.png");
|
||||
}
|
||||
mainWin = new BrowserWindow(option);
|
||||
const isDev = require("electron-is-dev");
|
||||
if (!isDev) {
|
||||
const { Menu } = require("electron");
|
||||
@@ -64,6 +67,9 @@ app.on("ready", () => {
|
||||
allowRunningInsecureContent: true,
|
||||
},
|
||||
};
|
||||
if (process.platform === "linux") {
|
||||
options.icon = path.join(__dirname, "/assets/icons/256x256.png");
|
||||
}
|
||||
let pdfLocation = isDev
|
||||
? "http://localhost:3000/" + url
|
||||
: `file://${path.join(
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"email": "guo362429@gmail.com"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10.0.0",
|
||||
"node": ">=14.0.0",
|
||||
"npm": ">=6.0.0"
|
||||
},
|
||||
"repository": "https://github.com/troyeguo/koodo-reader",
|
||||
|
||||
Reference in New Issue
Block a user