Initial work on Shares
This commit is contained in:
@@ -4,3 +4,4 @@ export * from './formatters'
|
||||
export * from './intersperse'
|
||||
export * from './notifications'
|
||||
export * from './openInNewTab'
|
||||
export * from './shareUrl'
|
||||
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user