We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dafa208 commit eb884eaCopy full SHA for eb884ea
src/Stages/DeviceDetector.php
@@ -65,9 +65,9 @@ public function __invoke(PayloadInterface $payload): PayloadInterface
65
if (! empty($device['type'])) {
66
if ($device['type'] === 'desktop') {
67
$payload->setValue('isDesktop', true);
68
- } elseif ($device['type'] === 'tablet' || $device['type'] === 'phablet') {
+ } elseif ($device['type'] === 'tablet') {
69
$payload->setValue('isTablet', true);
70
- } elseif ($device['type'] === 'smartphone' || $device['type'] === 'feature phone') {
+ } elseif ($device['type'] === 'smartphone' || $device['type'] === 'feature phone' || $device['type'] === 'phablet') {
71
$payload->setValue('isMobile', true);
72
}
73
0 commit comments