From 5db7f73ce02c0944bc2bc6069555040c41078855 Mon Sep 17 00:00:00 2001 From: koalasat Date: Sat, 19 Oct 2024 12:52:51 +0200 Subject: [PATCH] Fix load --- desktopApp/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktopApp/index.js b/desktopApp/index.js index d0bf20b3..4a9f21b6 100644 --- a/desktopApp/index.js +++ b/desktopApp/index.js @@ -48,13 +48,13 @@ function createWindow() { }, }); // 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 }); // Handle failed load attempts by reloading the file mainWindow.webContents.on("did-fail-load", function () { 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 // mainWindow.webContents.openDevTools();