Ai
1 Star 0 Fork 12

nygula/koodo-reader

forked from yu82694/koodo-reader 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.ts 621 Bytes
一键复制 编辑 原始数据 按行查看 历史
troyeguo 提交于 2020-07-18 12:08 +08:00 . fix bug
const { app, BrowserWindow, dialog, shell, remote } = require("electron");
const isDev = require("electron-is-dev");
const path = require("path");
let mainWindow;
app.on("ready", () => {
// console.log("before message box");
mainWindow = new BrowserWindow({
width: 1024,
height: 660,
webPreferences: {
nodeIntegration: false,
},
});
if (!isDev) {
const { Menu } = require("electron");
Menu.setApplicationMenu(null);
}
const urlLocation = isDev
? "http://localhost:3000/"
: `file://${path.join(__dirname, "./build/index.html")}`;
mainWindow.loadURL(urlLocation);
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/nygula/koodo-reader.git
git@gitee.com:nygula/koodo-reader.git
nygula
koodo-reader
koodo-reader
master

搜索帮助