From f6092ebebb8d84fbaed57e8fd500328d7022c0f3 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 11 Jan 2019 20:48:29 -0500 Subject: [PATCH] Add App->mobileDetect property --- src/App.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/App.php b/src/App.php index 1045c413dc..ac513b531a 100644 --- a/src/App.php +++ b/src/App.php @@ -101,6 +101,11 @@ class App */ private $isAjax; + /** + * @var MobileDetect + */ + public $mobileDetect; + /** * Register a stylesheet file path to be included in the tag of every page. * Inclusion is done in App->initHead(). @@ -268,6 +273,9 @@ class App // Detect mobile devices $mobile_detect = new MobileDetect(); + + $this->mobileDetect = $mobile_detect; + $this->is_mobile = $mobile_detect->isMobile(); $this->is_tablet = $mobile_detect->isTablet();