aboutsummaryrefslogtreecommitdiff
path: root/web/app/controller
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/controller')
-rw-r--r--web/app/controller/Root.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js
index 7c0345a..c1700aa 100644
--- a/web/app/controller/Root.js
+++ b/web/app/controller/Root.js
@@ -108,7 +108,7 @@ Ext.define('Traccar.controller.Root', {
},
loadApp: function () {
- var attribution, eventId;
+ var updateView, attributionView, eventId;
if (window.webkit && window.webkit.messageHandlers.appInterface) {
window.webkit.messageHandlers.appInterface.postMessage('login');
@@ -152,9 +152,13 @@ Ext.define('Traccar.controller.Root', {
this.asyncUpdate(true);
}
});
- attribution = Ext.get('attribution');
- if (attribution) {
- attribution.remove();
+ updateView = Ext.get('update');
+ if (updateView) {
+ updateView.remove();
+ }
+ attributionView = Ext.get('attribution');
+ if (attributionView) {
+ attributionView.remove();
}
if (Traccar.app.isMobile()) {
Ext.create('widget.mainMobile');