From 659fbb1dc3611d5ca45962e98bde8bc5b8c745f6 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Fri, 16 May 2025 07:34:56 +0000 Subject: [PATCH] * [misc] remove unused code. --- www/index.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/www/index.php b/www/index.php index 97a9fdd47c..ece29b3777 100644 --- a/www/index.php +++ b/www/index.php @@ -70,8 +70,6 @@ if(file_exists('install.php') or file_exists('upgrade.php')) } } -/* If client device is mobile and version is pro, set the default view as mthml. */ -if($app->clientDevice == 'mobile' and (strpos($config->version, 'pro') === 0 or strpos($config->version, 'biz') === 0 or strpos($config->version, 'max') === 0) and $config->default->view == 'html') $config->default->view = 'mhtml'; if(!empty($_GET['display']) && $_GET['display'] == 'card') $config->default->view = 'xhtml'; try