Commit 08e9d2e0 authored by krysent's avatar krysent

1

parent 8a60803f
...@@ -22,10 +22,10 @@ import { message } from "antd"; ...@@ -22,10 +22,10 @@ import { message } from "antd";
const { NODE_ENV } = process.env; const { NODE_ENV } = process.env;
const websocketUrl = const websocketUrl =
NODE_ENV == "development" NODE_ENV == "development"
? "http://192.168.40.41:7001" ? "http://192.168.40.41:7001" : 'http://192.168.40.41'
: `${window.location.protocol == "http:" ? "ws" : "wss"}://${ // : `${window.location.protocol == "http:" ? "ws" : "wss"}://${
window.location.host // window.location.host
}`; // }`;
let socket; let socket;
export default (second) => { export default (second) => {
const ref = useRef(null); const ref = useRef(null);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment