Commit 85b5f6ff authored by ajlarrosa's avatar ajlarrosa

Fxi en rutas

parent 4670eafa
This diff is collapsed.
...@@ -47,7 +47,7 @@ const Home = () => { ...@@ -47,7 +47,7 @@ const Home = () => {
</header> </header>
<main className="home-content-main main-content-container"> <main className="home-content-main main-content-container">
<Switch> <Switch>
<Route exact path={`/`} component={MainPage} /> <Route exact path={`/`} component={Signin} />
<Route path={`/signin`} component={Signin} /> <Route path={`/signin`} component={Signin} />
</Switch> </Switch>
</main> </main>
......
...@@ -10,7 +10,7 @@ import apiRouters from '../config/api_routers'; ...@@ -10,7 +10,7 @@ import apiRouters from '../config/api_routers';
const Signin = (props: RouteComponentProps) => { const Signin = (props: RouteComponentProps) => {
React.useEffect(() => { React.useEffect(() => {
window.addEventListener('message', (event) => { window.addEventListener('message', (event) => {
if (event.origin !== process.env.REACT_APP_CLUSTER_URL) return; if (!event.origin.includes(process.env.REACT_APP_CLUSTER_URL!)) return;
doSignin(event.data); doSignin(event.data);
}); });
}, []); }, []);
......
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