Fix default profile not selected with hash
This commit is contained in:
parent
aa4589816a
commit
a57a560950
1 changed files with 2 additions and 1 deletions
|
|
@ -18,7 +18,8 @@ BR.RoutingOptions = L.Evented.extend({
|
||||||
var option = document.createElement('option');
|
var option = document.createElement('option');
|
||||||
option.value = profiles[i];
|
option.value = profiles[i];
|
||||||
option.text = i18next.t('navbar.profile.' + profiles[i]);
|
option.text = i18next.t('navbar.profile.' + profiles[i]);
|
||||||
if (remembered_profile !== null && remembered_profile === profiles[i]) {
|
// set remembered profile, only when no URL hash (assumes fullHash plugin not initialised yet)
|
||||||
|
if (!location.hash && remembered_profile !== null && remembered_profile === profiles[i]) {
|
||||||
option.selected = true;
|
option.selected = true;
|
||||||
remembered_profile_was_selected = true;
|
remembered_profile_was_selected = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue