aboutsummaryrefslogtreecommitdiff
path: root/web/app/controller
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/controller')
-rw-r--r--web/app/controller/Root.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js
index 53f3b83df..c8e708c09 100644
--- a/web/app/controller/Root.js
+++ b/web/app/controller/Root.js
@@ -81,7 +81,10 @@ Ext.define('Traccar.controller.Root', {
this.asyncUpdate(true);
}
});
- if (Ext.get('attribution') !== null) Ext.get('attribution').remove();
+ var attribution = Ext.get('attribution');
+ if (attribution) {
+ attribution.remove();
+ }
if (this.isPhone) {
Ext.create('widget.mainMobile');
} else {