diff --git a/eslint.config.js b/eslint.config.js index b68ee8fe..53b7e435 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -8,7 +8,7 @@ import htmlParser from "@html-eslint/parser"; import customRules from "./eslint-rules/index.js"; export default tseslint.config( - { ignores: ["dist", "electron/dist"] }, + { ignores: ["dist"] }, { extends: [js.configs.recommended, ...tseslint.configs.recommended], files: ["**/*.{ts,tsx}"], diff --git a/src/AppRouter.tsx b/src/AppRouter.tsx index 04d2723d..db4d0dee 100644 --- a/src/AppRouter.tsx +++ b/src/AppRouter.tsx @@ -1,4 +1,4 @@ -import { BrowserRouter, HashRouter, Route, Routes } from "react-router-dom"; +import { BrowserRouter, Route, Routes } from "react-router-dom"; import { ScrollToTop } from "./components/ScrollToTop"; import { SessionMonitor } from "./components/SessionMonitor"; import { URLFragmentHandler } from "./components/URLFragmentHandler"; @@ -25,11 +25,8 @@ import { ProjectView } from "./pages/ProjectView"; import { SettingsLayout } from "./components/SettingsLayout"; export function AppRouter() { - // Use HashRouter in Electron, BrowserRouter in web - const Router = globalThis.electron ? HashRouter : BrowserRouter; - return ( - + @@ -58,7 +55,7 @@ export function AppRouter() { {/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */} } /> - + ); } export default AppRouter;