Skip to content

Commit ab81d01

Browse files
committed
Fix electron main.js import bug
1 parent 4395d6e commit ab81d01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

desktop/main.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { app, BrowserWindow, dialog, ipcMain } from "electron";
22
import serve from "electron-serve";
3-
import { join } from "path";
3+
import path from "path";
44
import { fileURLToPath } from "url";
55
import { nativeTheme } from "electron/main";
66

@@ -13,7 +13,7 @@ const __filename = fileURLToPath(import.meta.url);
1313
const __dirname = path.dirname(__filename);
1414

1515
const appServe = serve({
16-
directory: join(process.resourcesPath, "app/out-next"),
16+
directory: path.join(process.resourcesPath, "app/out-next"),
1717
});
1818

1919
const createWindow = () => {

0 commit comments

Comments
 (0)