remove remporary cookeis hooks.

This commit is contained in:
Miroslav Šedivý 2020-12-28 21:02:10 +01:00
parent 67d0c7eb78
commit 09e1050f8f

View File

@ -240,17 +240,6 @@
this.tabHander = func 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. // TODO: Refactor.
public headerEvent(event: string, payload?: any | undefined) { public headerEvent(event: string, payload?: any | undefined) {
this.websocket.send('headers/' + event, { payload }) this.websocket.send('headers/' + event, { payload })
@ -294,11 +283,6 @@
this.tabHander(event, payload.payload) this.tabHander(event, payload.payload)
} }
// TODO: Refactor.
if (event.match(/^cookies\//) && this.cookieHander) {
this.cookieHander(event, payload.payload)
}
// TODO: Refactor. // TODO: Refactor.
if (event.match(/^headers\//) && this.headerHander) { if (event.match(/^headers\//) && this.headerHander) {
this.headerHander(event, payload.payload) this.headerHander(event, payload.payload)