Player: extract file extension

This commit is contained in:
He4eT 2021-02-19 16:04:58 +05:00
commit 251fa153f0
2 changed files with 13 additions and 0 deletions

View file

@ -22,3 +22,6 @@ export const useHashLocation = () => {
export const buildPlayLinkHref = (url, theme = 'default') =>
`/#/play/${theme}/${encodeURIComponent(url)}`
export const getFileExtension = fileName =>
fileName.split('.').pop()