Skip to content

Commit 45b9b2c

Browse files
committed
Fix up the firefox aurora mobile parsing.
1 parent be48b3c commit 45b9b2c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎user_agents/parsers.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ def __init__(self, user_agent_string):
110110
def _is_android_tablet(self):
111111
# Newer Android tablets don't have "Mobile" in their user agent string,
112112
# older ones like Galaxy Tab still have "Mobile" though they're not
113-
if 'Mobile Safari' not in self.ua_string:
113+
if ('Mobile Safari' not in self.ua_string and
114+
self.browser.family != "Firefox Mobile"):
114115
return True
115116
if 'SCH-' in self.ua_string:
116117
return True
@@ -186,4 +187,4 @@ def is_bot(self):
186187

187188

188189
def parse(user_agent_string):
189-
return UserAgent(user_agent_string)
190+
return UserAgent(user_agent_string)

0 commit comments

Comments
 (0)