mirror of
https://github.com/maputnik/editor.git
synced 2026-07-27 08:17:26 +00:00
Fix this being undefined
This commit is contained in:
@@ -9,6 +9,7 @@ export class ApiStyleStore {
|
|||||||
const host = opts.host || 'localhost'
|
const host = opts.host || 'localhost'
|
||||||
this.localUrl = `http://${host}:${port}`
|
this.localUrl = `http://${host}:${port}`
|
||||||
this.websocketUrl = `ws://${host}:${port}/ws`
|
this.websocketUrl = `ws://${host}:${port}/ws`
|
||||||
|
this.init = this.init.bind(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
init(cb) {
|
init(cb) {
|
||||||
|
|||||||
Reference in New Issue
Block a user