autoconnect variable was used before it was defined.

This commit is contained in:
Giannis Kosmas 2017-10-06 22:53:52 +03:00
parent 69411b9ea3
commit 067accb8d9
1 changed files with 2 additions and 5 deletions

View File

@ -102,11 +102,6 @@ var UI = {
UI.openControlbar();
// Show the connect panel on first load unless autoconnecting
if (!autoconnect) {
UI.openConnectPanel();
}
UI.updateViewClip();
UI.updateVisualState();
@ -120,6 +115,8 @@ var UI = {
UI.connect();
} else {
autoconnect = false;
// Show the connect panel on first load unless autoconnecting
UI.openConnectPanel();
}
if (typeof callback === "function") {