From 1b5e87c03354c2cb604ec1da25c8b677090906b7 Mon Sep 17 00:00:00 2001 From: Lang Date: Mon, 28 Oct 2019 22:16:26 +0100 Subject: [PATCH] chg: dev: change the default url to wss on frontend #3 --- assets/js/mine-seeker/app.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/assets/js/mine-seeker/app.js b/assets/js/mine-seeker/app.js index 03a951a..40b8ecd 100644 --- a/assets/js/mine-seeker/app.js +++ b/assets/js/mine-seeker/app.js @@ -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/" ); /**