From 33783a40ebe4af278bf4f9fa6ca7fa75452c1304 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 7 Nov 2016 06:07:18 +1300 Subject: Add reports to the mobile view --- web/app/controller/Root.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/app/controller') diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js index eaf98e8f..568b761d 100644 --- a/web/app/controller/Root.js +++ b/web/app/controller/Root.js @@ -82,7 +82,7 @@ Ext.define('Traccar.controller.Root', { if (attribution) { attribution.remove(); } - if (window.matchMedia && window.matchMedia('(max-width: 768px)').matches) { + if (Traccar.app.isMobile()) { Ext.create('widget.mainMobile'); } else { Ext.create('widget.main'); -- cgit v1.2.3