diff options
Diffstat (limited to 'web/app/controller')
-rw-r--r-- | web/app/controller/Root.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js index 9eef35dc0..9ae7fa761 100644 --- a/web/app/controller/Root.js +++ b/web/app/controller/Root.js @@ -18,10 +18,7 @@ Ext.define('Traccar.controller.Root', { extend: 'Ext.app.Controller', requires: [ - 'Traccar.LoginManager', - 'Traccar.view.login.Login', - 'Traccar.view.main.Main', - 'Traccar.view.main.MainMobile' + 'Traccar.LoginManager' ], init: function() { @@ -68,10 +65,9 @@ Ext.define('Traccar.controller.Root', { Ext.getStore('Devices').load(); Ext.getBody().empty(); if (this.isPhone) { - Ext.create('Traccar.view.main.MainMobile'); + Ext.create('Traccar.view.MainMobile'); } else { - Ext.create('Traccar.view.main.Main'); + Ext.create('Traccar.view.Main'); } } - }); |