aboutsummaryrefslogtreecommitdiff
path: root/web/app/controller
diff options
context:
space:
mode:
authorninioe <ninioe@gmail.com>2016-07-21 07:58:28 +0300
committerninioe <ninioe@gmail.com>2016-07-21 07:58:28 +0300
commit2e7987b5df7611299aa76bcc9eca3424ce31d204 (patch)
treec7314d97562365d2cf1fa67f707ee0a250aa3b42 /web/app/controller
parent19d51272931f92c5c8a139e8aa8f9aa0314f6c61 (diff)
downloadtraccar-server-2e7987b5df7611299aa76bcc9eca3424ce31d204.tar.gz
traccar-server-2e7987b5df7611299aa76bcc9eca3424ce31d204.tar.bz2
traccar-server-2e7987b5df7611299aa76bcc9eca3424ce31d204.zip
protect Device positionId on clear history
Diffstat (limited to 'web/app/controller')
-rw-r--r--web/app/controller/Root.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js
index 90923fe53..fd30fe7c9 100644
--- a/web/app/controller/Root.js
+++ b/web/app/controller/Root.js
@@ -81,7 +81,7 @@ Ext.define('Traccar.controller.Root', {
this.asyncUpdate(true);
}
});
- Ext.get('attribution').remove();
+ if (Ext.get('attribution') !== null) Ext.get('attribution').remove();
if (this.isPhone) {
Ext.create('widget.mainMobile');
} else {