Skip to content

Commit 71c5c8d

Browse files
committed
electron client now points to heroku server
1 parent 70c852c commit 71c5c8d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/electron/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,9 @@ ipcMain.on('delete_cookie', event => {
376376

377377
// opens new window for github oauth when button on sign in page is clicked
378378
ipcMain.on('github', event => {
379-
const githubURL = `http://localhost:${DEV_PORT}/auth/github`;
379+
const githubURL = isDev
380+
? `http://localhost:${DEV_PORT}/auth/github`
381+
: `https://reactype-caret.herokuapp.com/auth/github`;
380382
const options = {
381383
client_id: process.env.GITHUB_ID,
382384
client_secret: process.env.GITHUB_SECRET,

0 commit comments

Comments
 (0)