mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-11-10 17:45:25 +00:00
socket 调试
This commit is contained in:
21
electron-app/main.js
Normal file
21
electron-app/main.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const Path = require("path");
|
||||
const {BrowserWindow, app} = require("electron");
|
||||
app.on("ready", () => {
|
||||
const win = new BrowserWindow({
|
||||
width: 1200,
|
||||
height: 800,
|
||||
webPreferences: {
|
||||
nodeIntegration: true,
|
||||
nodeIntegrationInSubFrames: true,
|
||||
nodeIntegrationInWorker: true,
|
||||
webSecurity: true,
|
||||
contextIsolation: false,
|
||||
}
|
||||
});
|
||||
win.webContents.openDevTools({mode: "right"});
|
||||
win.loadFile(Path.join(__dirname, "index.html"));
|
||||
win.show();
|
||||
});
|
||||
app.on("window-all-closed", () => {
|
||||
app.quit();
|
||||
});
|
||||
Reference in New Issue
Block a user