From 4b5a398e0a81132f5c2804c0e282b0da17913b5d Mon Sep 17 00:00:00 2001 From: Michael Corcoran Date: Thu, 24 Dec 2015 00:26:51 +1300 Subject: [PATCH] CLI: Fix undefined tab_switch_in_progress error --- tabs/cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabs/cli.js b/tabs/cli.js index e74dde8a..8fee1fa9 100644 --- a/tabs/cli.js +++ b/tabs/cli.js @@ -174,7 +174,7 @@ TABS.cli.read = function (readInfo) { GUI.timeout_add('waiting_for_bootup', function waiting_for_bootup() { MSP.send_message(MSP_codes.MSP_IDENT, false, false, function () { GUI.log(chrome.i18n.getMessage('deviceReady')); - if (!this.tab_switch_in_progress) { + if (!GUI.tab_switch_in_progress) { $('#tabs ul.mode-connected .tab_setup a').click(); } });