chg: dev: change the default url to wss on frontend #3
This commit is contained in:
@@ -331,10 +331,7 @@ class MineSeeker extends React.Component {
|
||||
connectWithWebsocket() {
|
||||
/** Create Websocket w/ Bahnhof.js */
|
||||
let websocket = WS.connect(
|
||||
// this.state.env === 'dev'
|
||||
// ? "ws://localhost:6450"
|
||||
(this.state.ssl === 'true' ? "wss" : "ws") + "://" + window.location.hostname + ":6450/"
|
||||
// : (this.state.ssl === 'true' ? "wss" : "ws") + "://mineseeker.splendidbear.org:6450"
|
||||
(this.state.ssl === 'true' ? "wss" : "ws") + "://" + window.location.hostname + "/ws/"
|
||||
);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user