From 441d8ed35e797f7ccf038620b184e9e2149f709c Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 16 Aug 2018 22:25:31 +0300 Subject: [PATCH] refactor(route) indexProcessing: noKeysPanel --- server/route.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/route.js b/server/route.js index fbf929d7..75beab4b 100644 --- a/server/route.js +++ b/server/route.js @@ -83,6 +83,7 @@ module.exports = currify((options, request, response, callback) => { */ function indexProcessing(options) { const oneFilePanel = config('oneFilePanel'); + const noKeysPanel = !config('keysPanel'); const noContact = !config('contact'); const noConfig = !config('configDialog'); const noConsole = !config('console'); @@ -91,7 +92,7 @@ function indexProcessing(options) { let data = options.data; - if (!config('keysPanel')) + if (noKeysPanel) data = hideKeysPanel(data); if (oneFilePanel)