mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 09:27:23 +00:00
routing: ignore repeats
This commit is contained in:
parent
4264ca10ba
commit
9f41e076ed
2 changed files with 30 additions and 24 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue