mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
Store the UI theme in the LocalStorage
This commit is contained in:
parent
e09705cf23
commit
7f143925ac
6 changed files with 28 additions and 25 deletions
|
|
@ -21,8 +21,8 @@ export const useHashLocation = () => {
|
|||
return [loc, navigate]
|
||||
}
|
||||
|
||||
export const buildPlayLinkHref = ({ url, theme }) =>
|
||||
`/#/play/${theme}/${encodeURIComponent(url)}`
|
||||
export const buildPlayLinkHref = ({ url }) =>
|
||||
`/#/play/${encodeURIComponent(url)}`
|
||||
|
||||
export const extractView = location => {
|
||||
const currentView = location.split('/').filter(Boolean)[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue