Add BaseURL configuration (fixes #103)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
const baseUrl = (path) => {
|
||||
const base = localStorage.getItem('baseURL') || ''
|
||||
const parts = [base]
|
||||
parts.push(path.replace(/^\//, ''))
|
||||
return parts.join('/')
|
||||
}
|
||||
|
||||
export default baseUrl
|
||||
Reference in New Issue
Block a user