electron: Fix directory imports

This commit is contained in:
Elian Doran 2024-07-24 20:41:44 +03:00
parent bb19cc216b
commit 7fb3abb4ea
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ await import('./services/scheduler.js');
startScheduledCleanup();
if (utils.isElectron()) {
(await import('@electron/remote/main')).initialize();
(await import('@electron/remote/main/index.js')).initialize();
}
export default app;

View File

@ -7,7 +7,7 @@ import log from "./log.js";
import sqlInit from "./sql_init.js";
import cls from "./cls.js";
import keyboardActionsService from "./keyboard_actions.js";
import remoteMain from "@electron/remote/main"
import remoteMain from "@electron/remote/main/index.js"
import { App, BrowserWindow, WebContents, ipcMain } from 'electron';
import { fileURLToPath } from "url";