mirror of
https://github.com/OpenFusionProject/Client.git
synced 2026-01-17 16:40:29 +00:00
Refactor cache swapping logic
* Hoist everything into a function * Add error handling * Rename vars for clarity * Skip renaming if the current and new version are the same: this along with the error handling should fix the black screen when using multiple clients
This commit is contained in:
4
index.js
4
index.js
@@ -110,8 +110,8 @@ app.on("ready", function () {
|
||||
showMainWindow();
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
console.log("An error occurred while checking for the config.");
|
||||
} catch (ex) {
|
||||
console.log("An error occurred while checking for the config");
|
||||
}
|
||||
|
||||
// Makes it so external links are opened in the system browser, not Electron
|
||||
|
||||
Reference in New Issue
Block a user