mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
remove remporary cookeis hooks.
This commit is contained in:
parent
67d0c7eb78
commit
09e1050f8f
@ -240,17 +240,6 @@
|
||||
this.tabHander = func
|
||||
}
|
||||
|
||||
// TODO: Refactor.
|
||||
public cookieEvent(event: string, payload?: any | undefined) {
|
||||
this.websocket.send('cookies/' + event, { payload })
|
||||
}
|
||||
|
||||
// TODO: Refactor.
|
||||
cookieHander?: (event: string, payload: any) => any
|
||||
public cookieSubscribe(func: (event: string, payload: any) => any) {
|
||||
this.cookieHander = func
|
||||
}
|
||||
|
||||
// TODO: Refactor.
|
||||
public headerEvent(event: string, payload?: any | undefined) {
|
||||
this.websocket.send('headers/' + event, { payload })
|
||||
@ -294,11 +283,6 @@
|
||||
this.tabHander(event, payload.payload)
|
||||
}
|
||||
|
||||
// TODO: Refactor.
|
||||
if (event.match(/^cookies\//) && this.cookieHander) {
|
||||
this.cookieHander(event, payload.payload)
|
||||
}
|
||||
|
||||
// TODO: Refactor.
|
||||
if (event.match(/^headers\//) && this.headerHander) {
|
||||
this.headerHander(event, payload.payload)
|
||||
|
Loading…
Reference in New Issue
Block a user