Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { app, BrowserWindow } = require("electron");
- const path = require("path");
- const createWindow = () => {
- const win = new BrowserWindow({
- width: 300,
- height: 450,
- icon: path.join(__dirname, "icon2.png"),
- resizable: false,
- });
- win.setMenuBarVisibility(false);
- win.setTitle("to do");
- win.loadFile("src/index.html");
- };
- app.whenReady().then(() => createWindow());
- app.on("window-all-closed", () => app.quit());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement