mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
Add a special class to the app container when the player page is active
This commit is contained in:
parent
42015eca8f
commit
5b283d2789
6 changed files with 31 additions and 13 deletions
|
|
@ -22,3 +22,8 @@ export const useHashLocation = () => {
|
|||
|
||||
export const buildPlayLinkHref = (url, theme) =>
|
||||
`/#/play/${theme}/${encodeURIComponent(url)}`
|
||||
|
||||
export const extractView = location => {
|
||||
const currentView = location.split('/').filter(Boolean)[0]
|
||||
return currentView || ''
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue