Ind.ie is now Small Technology Foundation.
Commit 9f397386 authored by Aral Balkan's avatar Aral Balkan

No longer hardcoding the socket URL in the client

(So the spike will work when accessed, for example, not just form localhost but from *.ngrok.io, etc.)
parent 17df28a7
......@@ -50,7 +50,7 @@
}
},
beforeMount () {
const socket = new Primus('http://localhost:3030')
const socket = new Primus(location.href)
Vue.app = feathers()
Vue.app.configure(primus(socket))
Vue.app.configure(auth())
......
......@@ -36,7 +36,7 @@ export default {
beforeMount () {
// TODO: Do we need to do this on every page or can we have a global
// initialisation? Check the Feathers docs.
const socket = new Primus('http://localhost:3030')
const socket = new Primus(location.href)
Vue.app = feathers()
Vue.app.configure(primus(socket))
Vue.app.configure(auth())
......
......@@ -31,7 +31,7 @@
beforeMount () {
// TODO: Do we need to do this on every page or can we have a global
// initialisation? Check the Feathers docs.
const socket = new Primus('http://localhost:3030')
const socket = new Primus(location.href)
Vue.app = feathers()
Vue.app.configure(primus(socket))
Vue.app.configure(auth())
......
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