Advertisement
AIwinter

Untitled

Apr 10th, 2025
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. const { app, BrowserWindow } = require("electron");
  2. const path = require("path");
  3.  
  4. const createWindow = () => {
  5. const win = new BrowserWindow({
  6. width: 300,
  7. height: 450,
  8. icon: path.join(__dirname, "icon2.png"),
  9. resizable: false,
  10. });
  11. win.setMenuBarVisibility(false);
  12. win.setTitle("to do");
  13. win.loadFile("src/index.html");
  14. };
  15.  
  16. app.whenReady().then(() => createWindow());
  17. app.on("window-all-closed", () => app.quit());
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement