mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
Views: replace css files with scss modules
This commit is contained in:
parent
40a6e7eb3a
commit
ae9456d6dd
17 changed files with 147 additions and 141 deletions
|
|
@ -9,7 +9,10 @@ export const buildPlayLinkHref = ({ url }) =>
|
|||
`/#/play/${encodeURIComponent(url)}`
|
||||
|
||||
export const extractView = (location) => {
|
||||
if (location === '/') return 'home'
|
||||
|
||||
const currentView = location.split('/').filter(Boolean)[0]
|
||||
|
||||
return currentView || ''
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue