Skip to content

Commit 534fd80

Browse files
rigor789michalsnik
authored andcommitted
Use prepare instead of prepublish. Allow specifying remote host instead of hardcoding localhost
1 parent 9112156 commit 534fd80

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

shells/electron/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"start": "node bin.js",
1515
"dev": "webpack --watch --hide-modules",
1616
"build": "webpack",
17-
"prepublish": "npm run build"
17+
"prepare": "npm run build"
1818
},
1919
"author": "",
2020
"license": "MIT",

shells/electron/src/backend.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ const disconnectedMessage = () => {
1616
}
1717

1818
(function () {
19+
const host = window.__VUE_DEVTOOLS_HOST__ || 'http://localhost'
1920
const port = process.env.PORT || 8098
20-
const socket = io('http://localhost:' + port)
21+
const socket = io(host + ':' + port)
2122

2223
// Disconnect socket once other client is connected
2324
socket.on('vue-devtools-disconnect-backend', () => {

0 commit comments

Comments
 (0)