This commit is contained in:
koalasat 2024-10-19 12:52:51 +02:00
parent 5d55801e1d
commit 5db7f73ce0
No known key found for this signature in database
GPG Key ID: 2F7F61C6146AB157

View File

@ -48,13 +48,13 @@ function createWindow() {
}, },
}); });
// Load the index.html file from the app directory // Load the index.html file from the app directory
mainWindow.loadURL("file://".concat(path.resolve(__dirname, 'index.html#/robot')), { mainWindow.loadURL("file://".concat(path.resolve(__dirname, 'index.html#/garage')), {
extraHeaders: "pragma: no-cache\n" // Prevent caching of the loaded file extraHeaders: "pragma: no-cache\n" // Prevent caching of the loaded file
}); });
// Handle failed load attempts by reloading the file // Handle failed load attempts by reloading the file
mainWindow.webContents.on("did-fail-load", function () { mainWindow.webContents.on("did-fail-load", function () {
console.log("Failed to load the page, retrying..."); console.log("Failed to load the page, retrying...");
mainWindow.loadURL("file://".concat(__dirname, "/index.html#/robot")); mainWindow.loadURL("file://".concat(__dirname, "/index.html#/garage"));
}); });
// Uncomment the following line to open the DevTools // Uncomment the following line to open the DevTools
// mainWindow.webContents.openDevTools(); // mainWindow.webContents.openDevTools();