redesign user frontend
This commit is contained in:
@@ -289,13 +289,14 @@ class MineSeeker extends React.Component {
|
||||
});
|
||||
}
|
||||
|
||||
/** After rendering */
|
||||
componentDidMount() {
|
||||
connectWithWebsocket() {
|
||||
/** Create Websocket w/ Bahnhof.js */
|
||||
let websocket = WS.connect(
|
||||
this.state.env === 'dev'
|
||||
// ? "ws://mine.dev:6450"
|
||||
// : "ws://www.mineseeker.ninja:6450"
|
||||
? "ws://mine.dev:6450"
|
||||
: (this.state.ssl === 'true' ? "wss" : "ws") + "://www.mineseeker.ninja:6450"
|
||||
: (this.state.ssl === 'true' ? "wss" : "ws") + "://system7.ddns.net:443/"
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -346,6 +347,11 @@ class MineSeeker extends React.Component {
|
||||
});
|
||||
}
|
||||
|
||||
/** After rendering */
|
||||
componentDidMount() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Cache the steps unless reconnection
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user