mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-07-29 18:25:47 +02:00
Fix: Refactor conditional statements for starting Discord RPC and Auto Update
This commit is contained in:
5
main.js
5
main.js
@@ -259,10 +259,11 @@ app.whenReady().then(async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
configFeatures.discordRPC ? startRPC() : ""; // Discord RPC
|
if (configFeatures.discordRPC) startRPC(); // Discord RPC
|
||||||
|
|
||||||
await createMainWindow();
|
await createMainWindow();
|
||||||
configFeatures.autoUpdate ? AutoUpdater(mainWindow) : ""; // Auto Update
|
|
||||||
|
if (configFeatures.autoUpdate) AutoUpdater(mainWindow); // Auto Update
|
||||||
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.error("Window or Server error :", err);
|
logger.error("Window or Server error :", err);
|
||||||
|
|||||||
Reference in New Issue
Block a user