diff options
Diffstat (limited to 'src/patcher.ts')
-rw-r--r-- | src/patcher.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/patcher.ts b/src/patcher.ts index 06f03d8..eca35f0 100644 --- a/src/patcher.ts +++ b/src/patcher.ts @@ -19,6 +19,7 @@ import electron, { app, BrowserWindowConstructorOptions } from "electron"; import { join } from "path"; import { initIpc } from "./ipcMain"; +import { installExt } from "./ipcMain/extensions"; import { readSettings } from "./ipcMain/index"; console.log("[Vencord] Starting up..."); @@ -68,11 +69,7 @@ electron.app.whenReady().then(() => { try { const settings = JSON.parse(readSettings()); if (settings.enableReactDevtools) - import("electron-devtools-installer") - .then(({ default: inst, REACT_DEVELOPER_TOOLS }) => - // @ts-ignore: cursed fake esm turns it into exports.default.default - (inst.default ?? inst)(REACT_DEVELOPER_TOOLS) - ) + installExt("fmkadmapgofadopljbjfkapdkoienihi") .then(() => console.info("[Vencord] Installed React Developer Tools")) .catch(err => console.error("[Vencord] Failed to install React Developer Tools", err)); } catch { } |