Kopie van https://gitlab.com/studieverenigingvia/ict/centurion met een paar aanpassingen
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
centurion/frontend/src/App.tsx

22 lines
509 B

4 years ago
import React from 'react';
4 years ago
import './App.sass';
4 years ago
import {SocketIOProvider} from "use-socketio/lib";
import Wrapper from "./Wrapper";
4 years ago
const App = () => {
4 years ago
let host;
if (window.location.hostname === "centurion.svia.nl") {
host = "https://centurion.svia.nl";
} else {
host = window.location.protocol + "//" + window.location.hostname + ":3001";
}
4 years ago
return (
4 years ago
<SocketIOProvider url={host}>
4 years ago
<Wrapper/>
</SocketIOProvider>
4 years ago
);
};
export default App;