fix base path js.

This commit is contained in:
m1k1o
2021-03-21 13:12:15 +01:00
parent b5df99176f
commit d476d37d1d
+1 -1
View File
@@ -13,7 +13,7 @@ import { state, State } from './state'
Vue.use(Vuex)
const api = new RoomsApi(new Configuration({
basePath: location.href.replace(/\/+$/, ''),
basePath: (location.protocol + '//' + location.host + location.pathname).replace(/\/+$/, ''),
}))
export default new Vuex.Store({