mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-01-18 18:38:07 +00:00
formatting socket.js + deal with broken windows ports - default :50013
This commit is contained in:
parent
5515437eab
commit
789094a2ee
2 changed files with 15 additions and 20 deletions
|
@ -18,7 +18,7 @@ console.log("args:")
|
||||||
console.log(args)
|
console.log(args)
|
||||||
|
|
||||||
const hostname = args.host || "0.0.0.0"
|
const hostname = args.host || "0.0.0.0"
|
||||||
const port = args.port || 3001
|
const port = args.port || 50013
|
||||||
|
|
||||||
app.use(express.json())
|
app.use(express.json())
|
||||||
|
|
||||||
|
|
|
@ -33,12 +33,7 @@ export default {
|
||||||
created() {
|
created() {
|
||||||
window.addEventListener('resize', this.onResize);
|
window.addEventListener('resize', this.onResize);
|
||||||
|
|
||||||
let wsHost;
|
const wsHost = ":50013"
|
||||||
if (localStorage.dev === "dev") {
|
|
||||||
wsHost = ":3001"
|
|
||||||
} else {
|
|
||||||
wsHost = ""
|
|
||||||
}
|
|
||||||
|
|
||||||
socket = io(wsHost, {
|
socket = io(wsHost, {
|
||||||
transports: ['websocket']
|
transports: ['websocket']
|
||||||
|
|
Loading…
Reference in a new issue