diff --git a/package.json b/package.json index 6150824..899d674 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "@types/node": "^17.0.33", "@types/ws": "^8.5.3", "copyfiles": "^2.4.1", - "electron": "^19.0.4", + "electron": "^18.2.4", "electron-builder": "^23.0.3", "husky": "^8.0.1", "prettier": "^2.5.1", diff --git a/src/content/setup.html b/src/content/setup.html index 4b9d4bd..6ed4c94 100644 --- a/src/content/setup.html +++ b/src/content/setup.html @@ -101,7 +101,6 @@ automaticPatches: false, mods: "cumcord", inviteWebsocket: true, - performanceMode: "none", blurType: "acrylic" }); setTimeout(() => window.armcordinternal.restart(), 5000); @@ -131,7 +130,6 @@ autoLaunch: true, minimizeToTray: true, automaticPatches: false, - performanceMode: "none", mods: options.mod, inviteWebsocket: true, blurType: "acrylic" @@ -147,7 +145,6 @@ automaticPatches: false, autoLaunch: true, mods: "none", - performanceMode: "none", inviteWebsocket: true, blurType: "acrylic" }); diff --git a/src/main.ts b/src/main.ts index 8d1abb9..ec61b77 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,7 +1,7 @@ // Modules to control application life and create native browser window import {app, BrowserWindow, session, dialog} from "electron"; import "v8-compile-cache"; -import {getConfig, setup, checkIfConfigExists, injectElectronFlags} from "./utils"; +import {getConfig, setup, checkIfConfigExists} from "./utils"; import "./extensions/mods"; import "./extensions/plugin"; import "./tray"; @@ -12,7 +12,6 @@ export var settings: any; export var customTitlebar: boolean; export var tabs: boolean; - if (process.platform == "linux") { if (process.env.$XDG_SESSION_TYPE == "wayland") { console.log("Wayland specific patches applied."); @@ -25,7 +24,7 @@ if (process.platform == "linux") { } } checkIfConfigExists(); -injectElectronFlags(); + app.whenReady().then(async () => { switch (await getConfig("windowStyle")) { case "default": diff --git a/src/settings/settings.html b/src/settings/settings.html index c57151c..7d723c5 100644 --- a/src/settings/settings.html +++ b/src/settings/settings.html @@ -58,14 +58,7 @@
Client mod:
-Performance mode:
-