aboutsummaryrefslogtreecommitdiff
path: root/web/app/Application.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/Application.js')
-rw-r--r--web/app/Application.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/Application.js b/web/app/Application.js
index 91d2b7835..c488818a4 100644
--- a/web/app/Application.js
+++ b/web/app/Application.js
@@ -68,7 +68,7 @@ Ext.define('Traccar.Application', {
},
getPreference: function(key, defaultValue) {
- return this.getUser().get('distanceUnit') | this.getServer().get('distanceUnit') | defaultValue;
+ return this.getUser().get(key) || this.getServer().get(key) || defaultValue;
}
});