Temporaly reverted old test variant

This commit is contained in:
2026-06-11 07:41:59 +02:00
parent fef960d4ce
commit 246a08b941
18 changed files with 1950 additions and 788 deletions

11
main.js
View File

@@ -6,12 +6,14 @@ const url = require("url");
// be closed automatically when the JavaScript object is garbage collected.
let mainWindow;
const isDev = process.env.NODE_ENV === "development";
function createWindow() {
// Create the browser window.
mainWindow = new BrowserWindow({
width: 800,
height: 600,
backgroundColor: "#ccc",
backgroundColor: "#fff",
autoHideMenuBar: true,
webPreferences: {
nodeIntegration: true, // to allow require
@@ -20,7 +22,12 @@ function createWindow() {
},
});
// and load the index.html of the app.
// if (isDev) {
// mainWindow.loadURL("http://localhost:5173");
// } else {
// mainWindow.loadFile(path.join(__dirname, "dist", "index.html"));
// }
mainWindow.loadURL(
url.format({
pathname: path.join(__dirname, "front", "index.html"),