Merge pull request #917 from kosmasgiannis/autoconnect

autoconnect variable was used before it was defined
This commit is contained in:
Samuel Mannehed 2017-10-06 23:03:10 +02:00 committed by GitHub
commit 9b8f522f15
1 changed files with 2 additions and 5 deletions

View File

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