Skip to content

Commit

Permalink
add hash router
Browse files Browse the repository at this point in the history
  • Loading branch information
MrFlashAccount committed Mar 6, 2024
1 parent b0842fe commit a74c269
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/ide-desktop/lib/dashboard/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export interface AppProps {
export default function App(props: AppProps) {
// This is a React component even though it does not contain JSX.
// eslint-disable-next-line no-restricted-syntax
const Router = detect.isOnElectron() ? router.MemoryRouter : router.BrowserRouter
const Router = detect.isOnElectron() ? router.HashRouter : router.BrowserRouter
// Both `BackendProvider` and `InputBindingsProvider` depend on `LocalStorageProvider`.
// Note that the `Router` must be the parent of the `AuthProvider`, because the `AuthProvider`
// will redirect the user between the login/register pages and the dashboard.
Expand Down

0 comments on commit a74c269

Please sign in to comment.