Use location.origin as default base URL

This commit is contained in:
Philipp Heckel 2022-03-05 22:11:32 -05:00
parent c5ce51f242
commit 420e35c33c
7 changed files with 16 additions and 19 deletions

View file

@ -21,8 +21,11 @@ import {BrowserRouter, Route, Routes, useLocation, useNavigate} from "react-rout
import {subscriptionRoute} from "../app/utils";
// TODO support unsubscribed routes
// TODO add "home" route that is selected when nothing else fits
// TODO new notification indicator
// TODO sound
// TODO "copy url" toast
// TODO "copy link url" button
const App = () => {
return (
@ -87,6 +90,8 @@ const Root = () => {
connectionManager.resetStateListener();
connectionManager.resetNotificationListener();
}
// This is for the use of 'navigate' // FIXME
//eslint-disable-next-line
}, [/* initial render */]);
useEffect(() => { connectionManager.refresh(subscriptions, users) }, [subscriptions, users]); // Dangle!
return (