Commit 08e9d2e0 authored by krysent's avatar krysent

1

parent 8a60803f
......@@ -22,10 +22,10 @@ import { message } from "antd";
const { NODE_ENV } = process.env;
const websocketUrl =
NODE_ENV == "development"
? "http://192.168.40.41:7001"
: `${window.location.protocol == "http:" ? "ws" : "wss"}://${
window.location.host
}`;
? "http://192.168.40.41:7001" : 'http://192.168.40.41'
// : `${window.location.protocol == "http:" ? "ws" : "wss"}://${
// window.location.host
// }`;
let socket;
export default (second) => {
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