Skip to content

Commit

Permalink
serve electron from live url
Browse files Browse the repository at this point in the history
  • Loading branch information
m-emre-yalcin committed Aug 14, 2022
1 parent 70db8cd commit 9b870b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ const createWindow = async () => {

// Load Web App
if (app.isPackaged) {
// live url: https://task-manager-nine-lemon.vercel.app/#/
// From live url
mainWindow.loadURL("https://task-manager-nine-lemon.vercel.app/#/");

mainWindow.loadFile(join(__dirname, '../dist/index.html/'))
// From local dist
// mainWindow.loadFile(join(__dirname, '../dist/index.html/'))
}
else {
// Development
Expand Down

1 comment on commit 9b870b0

@vercel
Copy link

@vercel vercel bot commented on 9b870b0 Aug 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.