mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-05 01:17:22 +00:00
Player: extract file extension
This commit is contained in:
parent
14f9c5be4c
commit
251fa153f0
2 changed files with 13 additions and 0 deletions
|
|
@ -22,3 +22,6 @@ export const useHashLocation = () => {
|
|||
|
||||
export const buildPlayLinkHref = (url, theme = 'default') =>
|
||||
`/#/play/${theme}/${encodeURIComponent(url)}`
|
||||
|
||||
export const getFileExtension = fileName =>
|
||||
fileName.split('.').pop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue