Skip to content

Commit

Permalink
Fix building
Browse files Browse the repository at this point in the history
  • Loading branch information
blaumeise20 committed Aug 23, 2021
1 parent 9c4e642 commit 9ecb91a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ app.on("ready", () => {
dev ?
join(app.getPath("userData"), require("../../package.json").productName) :
app.getPath("userData"),
app.getAppPath()
__dirname
]));

const window = new BrowserWindow({
Expand All @@ -20,5 +20,5 @@ app.on("ready", () => {
});

if (dev) window.loadURL(`http://localhost:${process.env.ELECTRON_WEBPACK_DEV_PORT}/#${appPath}`);
else window.loadFile(`../build/index.html#${appPath}`);
else window.loadURL("file://" + join(__dirname, `../build/index.html#${appPath}`));
});

0 comments on commit 9ecb91a

Please sign in to comment.