mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
remove unused header methods.
This commit is contained in:
parent
09e1050f8f
commit
398a8a4ab4
@ -240,17 +240,6 @@
|
|||||||
this.tabHander = func
|
this.tabHander = func
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Refactor.
|
|
||||||
public headerEvent(event: string, payload?: any | undefined) {
|
|
||||||
this.websocket.send('headers/' + event, { payload })
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: Refactor.
|
|
||||||
headerHander?: (event: string, payload: any) => any
|
|
||||||
public headerSubscribe(func: (event: string, payload: any) => any) {
|
|
||||||
this.headerHander = func
|
|
||||||
}
|
|
||||||
|
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
// Component lifecycle
|
// Component lifecycle
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
@ -282,11 +271,6 @@
|
|||||||
if (event.match(/^tabs\//) && this.tabHander) {
|
if (event.match(/^tabs\//) && this.tabHander) {
|
||||||
this.tabHander(event, payload.payload)
|
this.tabHander(event, payload.payload)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Refactor.
|
|
||||||
if (event.match(/^headers\//) && this.headerHander) {
|
|
||||||
this.headerHander(event, payload.payload)
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
this.websocket.on('connecting', () => {
|
this.websocket.on('connecting', () => {
|
||||||
Vue.set(this.state.connection, 'websocket', 'connecting')
|
Vue.set(this.state.connection, 'websocket', 'connecting')
|
||||||
|
Loading…
Reference in New Issue
Block a user