File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Original file line number Diff line number Diff line change 62
62
'Windows RT' ,
63
63
'Windows CE' ,
64
64
'Windows Mobile' ,
65
+ 'Firefox OS' ,
65
66
)
66
67
67
68
TOUCH_CAPABLE_DEVICE_FAMILIES = (
@@ -164,6 +165,8 @@ def is_tablet(self):
164
165
return True
165
166
if self .os .family .startswith ('Windows RT' ):
166
167
return True
168
+ if self .os .family == 'Firefox OS' and 'Mobile' not in self .browser .family :
169
+ return True
167
170
return False
168
171
169
172
@property
@@ -175,7 +178,8 @@ def is_mobile(self):
175
178
return True
176
179
# Device is considered Mobile OS is Android and not tablet
177
180
# This is not fool proof but would have to suffice for now
178
- if self .os .family == 'Android' and not self .is_tablet :
181
+ if ((self .os .family == 'Android' or self .os .family == 'Firefox OS' )
182
+ and not self .is_tablet ):
179
183
return True
180
184
if self .os .family == 'BlackBerry OS' and self .device .family != 'Blackberry Playbook' :
181
185
return True
You can’t perform that action at this time.
0 commit comments