From 1b25275b2e28b4e3af4153cb6f52476f753bbc16 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 31 Aug 2025 20:43:48 +0300 Subject: [PATCH] fix(dx/electron): web contents not working --- apps/server/src/app.ts | 2 +- apps/server/src/services/window.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/server/src/app.ts b/apps/server/src/app.ts index a7bc00b42..a66a72837 100644 --- a/apps/server/src/app.ts +++ b/apps/server/src/app.ts @@ -122,7 +122,7 @@ export default async function buildApp() { startScheduledCleanup(); if (utils.isElectron) { - (await import("@electron/remote/main/index.js")).initialize(); + (await import("@electron/remote/main")).initialize(); } return app; diff --git a/apps/server/src/services/window.ts b/apps/server/src/services/window.ts index 9ddd5e4ff..d8228ca19 100644 --- a/apps/server/src/services/window.ts +++ b/apps/server/src/services/window.ts @@ -224,7 +224,7 @@ function getWindowExtraOpts() { } async function configureWebContents(webContents: WebContents, spellcheckEnabled: boolean) { - const remoteMain = (await import("@electron/remote/main/index.js")).default; + const remoteMain = (await import("@electron/remote/main")); remoteMain.enable(webContents); webContents.setWindowOpenHandler((details) => {