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();
// 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") {