mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 02:46:28 +00:00
Fix load
This commit is contained in:
parent
5d55801e1d
commit
5db7f73ce0
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user