From d5e267103c1cadb4b6e1d9560796457fe7beb3e7 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 21 Jan 2026 14:37:58 -0600 Subject: [PATCH] Clean up old electron code --- eslint.config.js | 2 +- src/AppRouter.tsx | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) 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;