From 09e1050f8f19c7a87d3f0e66ef1dcfc3bf1f52cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Mon, 28 Dec 2020 21:02:10 +0100 Subject: [PATCH] remove remporary cookeis hooks. --- src/component/main.vue | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/component/main.vue b/src/component/main.vue index a9889b86..fcb8846a 100644 --- a/src/component/main.vue +++ b/src/component/main.vue @@ -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)