|
|
@ -4,8 +4,15 @@ import {SocketIOProvider} from "use-socketio/lib"; |
|
|
|
import Wrapper from "./Wrapper"; |
|
|
|
import Wrapper from "./Wrapper"; |
|
|
|
|
|
|
|
|
|
|
|
const App = () => { |
|
|
|
const App = () => { |
|
|
|
|
|
|
|
let host; |
|
|
|
|
|
|
|
if (window.location.hostname === "centurion.svia.nl") { |
|
|
|
|
|
|
|
host = "https://centurion.svia.nl"; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
host = window.location.protocol + "//" + window.location.hostname + ":3001"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<SocketIOProvider url={window.location.protocol + "//" + window.location.hostname + ":3001"}> |
|
|
|
<SocketIOProvider url={host}> |
|
|
|
<Wrapper/> |
|
|
|
<Wrapper/> |
|
|
|
</SocketIOProvider> |
|
|
|
</SocketIOProvider> |
|
|
|
); |
|
|
|
); |
|
|
|