From c9d96be5615b9d193a1eeff9ab00da7ca0fe0b6b Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 5 Sep 2023 10:14:16 -0700 Subject: feat: :sparkles: support browser-based IDEs with createMemoryRouter --- extension/react-app/src/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extension/react-app/src/App.tsx') diff --git a/extension/react-app/src/App.tsx b/extension/react-app/src/App.tsx index 65ad1ddd..edcac4a0 100644 --- a/extension/react-app/src/App.tsx +++ b/extension/react-app/src/App.tsx @@ -15,11 +15,11 @@ import { } from "./redux/slices/configSlice"; import { setHighlightedCode } from "./redux/slices/miscSlice"; import { postVscMessage } from "./vscode"; -import { createBrowserRouter, RouterProvider } from "react-router-dom"; +import { RouterProvider, createMemoryRouter } from "react-router-dom"; import ErrorPage from "./pages/error"; import SettingsPage from "./pages/settings"; -const router = createBrowserRouter([ +const router = createMemoryRouter([ { path: "/", element: , -- cgit v1.2.3-70-g09d2