Full code cleanup

This commit is contained in:
Pieter Vander Vennet 2021-11-07 16:34:51 +01:00
parent 8e6ee8c87f
commit bd21212eba
246 changed files with 19418 additions and 11729 deletions

View file

@ -64,7 +64,7 @@ export default class UserRelatedState extends ElementsState {
if (layoutToUse?.hideFromOverview) {
this.osmConnection.isLoggedIn.addCallbackAndRunD(loggedIn => {
if(loggedIn){
if (loggedIn) {
this.osmConnection
.GetPreference("hidden-theme-" + layoutToUse?.id + "-enabled")
.setData("true");
@ -129,7 +129,7 @@ export default class UserRelatedState extends ElementsState {
}
return [home.lon, home.lat]
})).map(homeLonLat => {
if(homeLonLat === undefined){
if (homeLonLat === undefined) {
return empty
}
return [{
@ -148,5 +148,5 @@ export default class UserRelatedState extends ElementsState {
this.homeLocation = new StaticFeatureSource(feature, false)
}
}