mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-12 05:01:03 +00:00
22 lines
541 B
JavaScript
22 lines
541 B
JavaScript
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();
|
|
});
|