mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-20 09:08:50 +01:00
Initial work on Shares
This commit is contained in:
parent
5331de17c2
commit
ab04e33da6
36 changed files with 841 additions and 84 deletions
|
|
@ -4,3 +4,4 @@ export * from './formatters'
|
|||
export * from './intersperse'
|
||||
export * from './notifications'
|
||||
export * from './openInNewTab'
|
||||
export * from './shareUrl'
|
||||
|
|
|
|||
6
ui/src/utils/shareUrl.js
Normal file
6
ui/src/utils/shareUrl.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import config from '../config'
|
||||
|
||||
export const shareUrl = (path) => {
|
||||
const url = new URL(config.shareBaseUrl + '/' + path, window.location.href)
|
||||
return url.href
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue