Commit 172fd082 authored by Alexandros Georgantas's avatar Alexandros Georgantas

Merge branch 'config-fix' into 'master'

config fix for client baseUrl

See merge request !4
parents 21d1c8ab 198acca3
......@@ -14,9 +14,7 @@ const DownloadEpub = ({ book, showModal, showModalToggle, outerContainer }) => {
const handleDownload = () => {
axios
.get(
`${config['pubsweet-server'].baseUrl}/api/collections/${
book.id
}/epub?destination=attachment&converter=${
`/api/collections/${book.id}/epub?destination=attachment&converter=${
!converter ? 'default' : converter
}&style=epub.css`,
)
......
......@@ -28,15 +28,9 @@ class PagedStyler extends Component {
componentDidMount() {
const { match } = this.props
const { params } = match
axios
.get(
`${config['pubsweet-server'].baseUrl}/uploads/paged/${
params.hashed
}/default.css`,
)
.then(res => {
this.setState({ css: res.data, isLoading: false })
})
axios.get(`/uploads/paged/${params.hashed}/default.css`).then(res => {
this.setState({ css: res.data, isLoading: false })
})
}
handleChange(doc, change) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment