Skip to content

Commit

Permalink
fix preselection of username in browser extension
Browse files Browse the repository at this point in the history
  • Loading branch information
snopf committed Jan 31, 2020
1 parent ab82ed1 commit f81d352
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/host/browser_extension/js/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ function activate_gui(hostname, username_guess) {
if (username_guess in account_table[hostname]) {
$('#input_account').val(username_guess);
} else {
$('#input_account').val(account_table[hostname][0]);
var first_hostname = Object.keys(account_table[hostname])[0];
$('#input_account').val(first_hostname);
}
}

Expand Down

0 comments on commit f81d352

Please sign in to comment.