From 48779742e3c7783398261d781913d9be996c754f Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 2 Jul 2018 12:41:47 +0300 Subject: [PATCH] fix(terminal) prevent init when config disabled --- client/modules/terminal.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/modules/terminal.js b/client/modules/terminal.js index 6756e1cc..4ccfe280 100644 --- a/client/modules/terminal.js +++ b/client/modules/terminal.js @@ -45,6 +45,9 @@ const loadAll = async () => { }; module.exports.init = async () => { + if (!config('terminal')) + return; + Images.show.load('top'); await CloudCmd.View();