Temporaly reverted old test variant
This commit is contained in:
11
main.js
11
main.js
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user