chore(dx/desktop): remote main not working in dist build

This commit is contained in:
Elian Doran 2025-09-01 21:15:17 +03:00
parent 135e2bb10e
commit ebcf4315f7
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();
if (utils.isElectron) {
(await import("@electron/remote/main")).initialize();
(await import("@electron/remote/main/index.js")).initialize();
}
return app;

View File

@ -224,7 +224,7 @@ function getWindowExtraOpts() {
}
async function configureWebContents(webContents: WebContents, spellcheckEnabled: boolean) {
const remoteMain = (await import("@electron/remote/main"));
const remoteMain = (await import("@electron/remote/main/index.js"));
remoteMain.enable(webContents);
webContents.setWindowOpenHandler((details) => {