4 Star 3 Fork 1

白羊李志远/BBG

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
developer_panel.js 684 Bytes
一键复制 编辑 原始数据 按行查看 历史
洛仙璃 提交于 2022-07-03 19:46 . fix:some variables
const path = require("path");
const { app, BrowserWindow } = require("electron");
const express = require("express");
const eapp = express();
eapp.use("/", express.static(path.join(__dirname, "/docs/")));
eapp.listen("23941");
// console.log("App listening on http://localhost:23941");
require("@electron/remote/main").initialize();
const createWindow = () => {
const win = new BrowserWindow({
width: 1200,
height: 600,
webPreferences: {
nodeIntegration: true,
contextIsolation: false,
},
});
require("@electron/remote/main").enable(win.webContents);
win.loadFile("./DeveloperPanel/index.html");
};
app.whenReady().then(() => createWindow());
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/baiyang-lzy/bbg.git
git@gitee.com:baiyang-lzy/bbg.git
baiyang-lzy
bbg
BBG
master

搜索帮助