Make sure the api url does not have a / at the end
This commit is contained in:
parent
f524a3efc1
commit
058570c9a7
1 changed files with 5 additions and 0 deletions
|
@ -5,6 +5,11 @@ import router from './router'
|
||||||
import {VERSION} from './version.json'
|
import {VERSION} from './version.json'
|
||||||
console.info(`Vikunja frontend version ${VERSION}`)
|
console.info(`Vikunja frontend version ${VERSION}`)
|
||||||
|
|
||||||
|
// Make sure the api url does not contain a / at the end
|
||||||
|
if(window.API_URL.substr(window.API_URL.length - 1, window.API_URL.length) === '/') {
|
||||||
|
window.API_URL = window.API_URL.substr(0, window.API_URL.length - 1)
|
||||||
|
}
|
||||||
|
|
||||||
// Register the modal
|
// Register the modal
|
||||||
import Modal from './components/modal/Modal'
|
import Modal from './components/modal/Modal'
|
||||||
Vue.component('modal', Modal)
|
Vue.component('modal', Modal)
|
||||||
|
|
Loading…
Reference in a new issue