From 3e1e90ef327102f5942884b8ba517971a47b2673 Mon Sep 17 00:00:00 2001 From: ninioe Date: Sun, 24 Jul 2016 11:56:46 +0300 Subject: more fixes --- web/app/controller/Root.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'web') 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 { -- cgit v1.2.3