mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-03 03:02:13 +00:00
Another text mode browser
This commit is contained in:
1 parent
9ab0b00e4d
commit
ccb2d285be
1 file changed
+3
-1
+3
-1
@@ -18,7 +18,9 @@ def text_mode_browser(ua_str: str) -> bool:
|
||||
"""Does the user agent indicate a text mode browser?
|
||||
"""
|
||||
if ua_str:
|
||||
text_mode_agents = ('Lynx/', 'w3m/', 'Links (', 'Emacs/', 'ELinks')
|
||||
text_mode_agents = (
|
||||
'Lynx/', 'w3m/', 'Links (', 'Emacs/', 'ELinks', 'chawan'
|
||||
)
|
||||
for agent in text_mode_agents:
|
||||
if agent in ua_str:
|
||||
return True
|
||||
|
||||
Reference in new issue
Block a user