Fix this being undefined

This commit is contained in:
Jesse Crocker 2019-04-16 09:19:36 -06:00
parent afbaaa66bc
commit efd0b547e9

View file

@ -9,6 +9,7 @@ export class ApiStyleStore {
const host = opts.host || 'localhost'
this.localUrl = `http://${host}:${port}`
this.websocketUrl = `ws://${host}:${port}/ws`
this.init = this.init.bind(this)
}
init(cb) {