Productos view

This commit is contained in:
2024-09-22 01:31:21 -03:00
parent 39379b67c3
commit 9dff07dc0a
13 changed files with 1602 additions and 103 deletions

View File

@@ -1,14 +1,18 @@
const { app, BrowserWindow } = require('electron');
const {app, BrowserWindow} = require('electron');
const path = require('path');
function createWindow() {
const win = new BrowserWindow({
width: 1024,
height: 720,
width: 1100,
height: 790,
resizable: false,
frame: false,
transparent: true,
autoHideMenuBar: true,
webPreferences: {
preload: path.join(__dirname, 'preload.js'),
nodeIntegration: true,
contextIsolation: false
contextIsolation: false,
}
});
win.loadURL('http://localhost:8080');
@@ -21,7 +25,6 @@ app.on('window-all-closed', () => {
app.quit();
}
});
app.on('activate', () => {
if (BrowserWindow.getAllWindows().length === 0) {
createWindow();