mirror of
https://gitea.tendokyu.moe/ppc/amnet.git
synced 2026-09-27 17:27:55 +03:00
switch to HashRouter
This commit is contained in:
@@ -20,9 +20,6 @@
|
||||
<meta name="twitter:title" content="AimeNet">
|
||||
<meta name="twitter:description" content="Browser-local Aime/Amusement IC Card Switcher">
|
||||
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-title" content="AimeNet">
|
||||
|
||||
<link rel="icon" href="/favicon.ico" type="image/x-icon" sizes="48x48">
|
||||
<link rel="icon" href="/icon-16.png" type="image/png" sizes="16x16">
|
||||
<link rel="icon" href="/icon-32.png" type="image/png" sizes="32x32">
|
||||
|
||||
@@ -2,7 +2,7 @@ import './index.css'
|
||||
|
||||
import {StrictMode} from 'react'
|
||||
import {createRoot} from 'react-dom/client'
|
||||
import {createBrowserRouter, RouterProvider} from "react-router-dom"
|
||||
import {createHashRouter, RouterProvider} from "react-router-dom"
|
||||
|
||||
import {Toaster} from "@/components/ui/toaster.tsx";
|
||||
import {ThemeProvider} from "@/components/theme-provider.tsx";
|
||||
@@ -11,7 +11,9 @@ import CardManager from "@/pages/card-manager.tsx"
|
||||
import ServerCardIn from "@/pages/card-in-screen.tsx"
|
||||
import ServerListing from "@/pages/server-listing.tsx"
|
||||
|
||||
const router = createBrowserRouter([
|
||||
// iOS PWAs show the navigation bar when changing routes
|
||||
// HashRouter doesn't have this issue as the URL never changes
|
||||
const router = createHashRouter([
|
||||
{
|
||||
path: '/',
|
||||
element: <ServerListing/>
|
||||
|
||||
Reference in New Issue
Block a user