routing: ignore repeats

This commit is contained in:
He4eT 2023-06-05 00:47:23 +03:00
commit 9f41e076ed
2 changed files with 30 additions and 24 deletions

View file

@ -20,7 +20,7 @@ import '~/src/style/base.css'
function App () {
const themeEngine = useThemeEngine()
const [location] = useHashLocation()
const [currentLocation] = useHashLocation()
const playerView = (themeEngine, singleWindow) =>
function view (params) {
@ -35,7 +35,7 @@ function App () {
<Router hook={useHashLocation}>
<div className={[
'app',
extractView(location),
extractView(currentLocation),
themeEngine.currentTheme].join(' ')}>
<Switch>