Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Dec 26, 2023. It is now read-only.

Commit 45b9b2c

Browse filesBrowse files
committed
Fix up the firefox aurora mobile parsing.
1 parent be48b3c commit 45b9b2c
Copy full SHA for 45b9b2c

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed

‎user_agents/parsers.py

Copy file name to clipboardExpand all lines: user_agents/parsers.py
+3-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.