fix(dx/electron): web contents not working

This commit is contained in:
Elian Doran 2025-08-31 20:43:48 +03:00
parent 886c694db7
commit 1b25275b2e
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ export default async function buildApp() {
startScheduledCleanup(); startScheduledCleanup();
if (utils.isElectron) { if (utils.isElectron) {
(await import("@electron/remote/main/index.js")).initialize(); (await import("@electron/remote/main")).initialize();
} }
return app; return app;

View File

@ -224,7 +224,7 @@ function getWindowExtraOpts() {
} }
async function configureWebContents(webContents: WebContents, spellcheckEnabled: boolean) { 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); remoteMain.enable(webContents);
webContents.setWindowOpenHandler((details) => { webContents.setWindowOpenHandler((details) => {