Skip to content

Commit cae43ea

Browse files
committed
Replace hardcoded port
1 parent 4b78f66 commit cae43ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shells/electron/src/backend.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import { installHook } from 'src/backend/hook'
44
import Bridge from 'src/bridge'
55

66
(function () {
7-
const socket = io('http://localhost:8098')
7+
const port = process.env.PORT || 8098
8+
const socket = io('http://localhost:' + port)
89

910
const bridge = new Bridge({
1011
listen (fn) {

0 commit comments

Comments
 (0)