Created
December 15, 2023 08:43
-
-
Save t57ser/1684784219cbd1f1a79df2733742e914 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let { app, BrowserWindow, ipcMain, session} = require("electron") | |
const electron = require("electron"); | |
function createWindow() { | |
let win = new BrowserWindow({ | |
}) | |
win.loadURL("https://www.example.com"); | |
win.webContents.openDevTools({mode: "undocked"}); | |
} | |
app.on("ready", createWindow) | |
app.on("window-all-closed", () => { | |
app.quit() | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"main": "main.js", | |
"scripts": { | |
"start": "electron ." | |
}, | |
"devDependencies": { | |
"electron": "24.0.0" | |
}, | |
"dependencies": { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment